A dog that occasionally does her business in the house is not properly toilet trained.
Originally Posted by maxx
First thing I would do is a vet check-up in case she has bladder issues. If everything is OK, then introduce strict "rules" in terms that you set up strictly the time when she goes out and does wees and poops. So to start about every 2-3 hours you take her out, perhaps it's better on leash to the desired spot and praise her and award with yummy treats for doing it there. It may take a while til she gets used to it, so be persistent. At night keep her crated or in confined area (ie. one room, hallway, wherever suitable, but don't let her have the whole house available. In time increase the hours between the toilet breaks. Grown up dog should be able to do with 3-4 walks/toilet breaks a day. DO NOT PUNISH any mistakes. The other thing that might cause peeing or pooping indoors might be associated with stress or anxiety (separation if you're not at home) so think about that. Many dogs do not have signs such as whining or restlessness but are still stressed out when you leave and they pee or poop in the house. Increase exercise and walk regularly, do not "confine" a dog just to your back yard, peeing and pooping can be a sign of boredom and stress related to not enough social contact and exercise.
Respect and you shall be respected. Animal is always right.