I guess different people have different ways of dealing with this same problem. you could do with a good dog training guide, that gives step by step training on how to stop your dog from doing that at night.
You could read this blog it just might help you out
DOG ARTICLE