Medication Summary. Many agents are useful in treating insomnia. Short-term drug therapy is preferred to restore a normal sleep pattern. Generally, hypnotic drugs are approved for 2 weeks or less of continuous use. In chronic insomnia, longer courses may be indicated, which require long-term monitoring to ensure ongoing appropriate use of the medication. Next: