Occasional use of sleep medication may be appropriate for some people, but long-term use of certain sleep drugs has been linked in some studies to a higher risk of dementia. Because older adults often take multiple medications and may already have sleep problems before dementia symptoms appear, it is difficult to know whether the medication itself is the cause. Anyone considering starting or stopping sleep medication should talk with a healthcare provider first.