Summarize this article:

Your dachshund will likely provide signals that she needs to use the bathroom, such as suddenly getting excited or racing around the house. The best way to teach your dachshund to go outside is to provide the opportunity. Take her out a leash. Always take her to the same spot, so she associates it with going to the bathroom. Try to take your dog out every 1 to 2 hours. You will need to take very young puppies outside more often, maybe as regularly as 20 minutes. Pick a phrase for bathroom time, such as "potty time." Use it when you are taking your dachshund outside, as well as when she goes to the bathroom so that she will associate the phrase with going outside to urinate or defecate. When your dachshund does use the bathroom outside, praise her up and down. Also, provide a tangible reward--a treat. Feed her one when she's done using the bathroom. If you catch your dachshund in the process of using the bathroom inside, startle her a bit with an "uh-oh" or slightly sharp noise. That should stop the process. Take her outside to her bathroom spot to finish. If she goes outside, provide a treat. Clean up the spot thoroughly. Use a cleaner specifically for pet messes, as they are designed to break down the smell. If your dachshund can smell it, she may return to the same spot. Punishments will likely just make the dachshund afraid of you, meaning she won't go around you but she may do so when you're not around. In addition, if you don't catch the dog in the act, she's not likely to associate your anger with going to the bathroom in the house. Dachshunds in particular take a little longer to train than other dogs. Make sure you continue to train your dog so she can be as potty trained as possible.
Learn the signs. Take your dachshund outside regularly. Use a verbal cue. Provide rewards. Interrupt accidents. Skip the punishment. Be patient.