Both my dogs were crated at night until they were completely housetrained. We got them at 4 and 5 months old. The 4 month old (Princess) had to be completely housetrained by us, so she was crated until she was a little over a year old. The 5 month old (Tara) was already almost completely housetrained, so she was "free" at night by the time she was 6 1/2-7 months old. Once out of the crate, they are free to roam the house at night, but they stay in our (me and my Hubby's) bedroom. They're welcome at the foot of the bed, as long as they behave- Tara sleeps at the bottom, Princess prefers either her own bed in our bedroom, or the hallway just outside our door. Neither of them ever want to roam the house if we're sleeping, though sometimes one or the other will go in and check on the kids in their rooms and then come right back.
My dog, Princess, was crated while I was a work until she was two years old. She was a very nervous puppy and the excitement of us coming home would make her pee on the floor, unless she was crated. She's four now and we only crate her if someone she's not sure about is coming into our home.
My dog, Tara, will be two next week. She's still crated when nobody is home, unless it will only be a couple of minutes, because she either gets bored or nervous and then starts chewing things. She prefers my kids toys and my Hubby's shoes.

It never happens when we're home, though.
Because of our schedules, neither dog is ever crates more than 4, maybe 5 hours at a time.
Funny little stories- my Princess prefers to sit ON TOP of her crate, on a pillow and my Tara prefers to lay in Princess' crate, which is perfect for a 20 pound dog, but not so perfect for a long legged 40 pound dog like Tara.

That's where they spend alot of their rest time, if left to their own devices. I've got funny dogs. And both dogs will follow me around all day long, when I'm home. Talk about attached "parenting"!
