Like Micki said, check it out with the vet.

I believe a dog should have an unlimited supply of water (with the exception of young pups where owners take it away during night). So, taking away the water probably won't be necessary.

I think investing in a crate would be great! It takes advantage of a dog's natural instinct to not soil in their 'den'. It's great for when you're not home or at night.

When she does soil in the house, make sure every little bit of the soiled carpet is cleaned and odorless. If she smells part of a carpet that wasn't cleaned properly, she may feel the need to soil in that area again. One of our obedience instructors recommended Nature's Miracle. She said that after having 60+ foster dogs and 6 dogs of her own, that was the only product she liked.

Just keep at it. Alot of patience is required on your part but it's darn worth it at the end. Taking her out every hour will help. It took Kai MONTHS of training before he caught on and could be fully trusted in the house. I think he was about 9 months old before I could trust him in the house alone without soiling and chewing so don't feel bad if it doesn't seem to be working right away. It could take days, weeks or even months (like in our case). Good luck!