If you've tried everything else and still have trouble getting through your day because of poor sleep, your doctor may prescribe sleeping pills for a few weeks. Commonly used sleep aids include sedatives, minor tranquilizers, and anti-anxiety drugs. Most are safe if a doctor supervises their use. Follow the directions exactly, since some sleep aids can become habit-forming or pose the potential for overdose if not used as directed.