Before taking sleeping pills … Talk to your doctor or pharmacist about: Other medications and supplements you are taking. Many common medications, including antidepressants and antibiotics, can cause dangerous interactions with both prescription and over-the-counter sleeping pills.