Drinking extra water when you take trimethoprim-sulfamethoxazole may help prevent unwanted side effects. Follow your doctor’s instructions, but overall it’s best to take the medication with a full glass of water. And it never hurts to drink water throughout the day to promote hydration.