You might have to try crate training,it usually works well because dogs do not like going to the bathroom where they sleep. You have to be strong too because your dog is probably going to wine and bark to get out but its they only way to help teach your dog how to hold it in.