If I know I'm going to be tying one on that night, I always place a Gatorade in the mini-fridge next to my bed to hydrate before I pass out. It's never failed me yet...
When I was in the Military, it wasn't a completely uncommon occurrence for our medic to administer an IV to us if we all went out drinking hard the night before. Good times.