Getting to know your fuzzy little friend early on will eliminate many of the unwelcome behaviors that can creep up later on. But what if you have passed that point? Well, first, understand that the bad behavior is a reward in itself to your dog. He didn't relieve himself on your carpet to make you angry it just felt good at the time. And he wants to be a part of your life, all aspects of it, so when you have friends over and he climbs all over them, he is just joining in on the fun.