Can long-term use of sleeping pills lead to dementia?

Irrational use of sleeping pills or long-acting sleeping pills may affect cognitive function during wakefulness due to residual daytime effects of the medication, which usually subside after discontinuation or reduction of dosage. There is insufficient evidence to prove whether dementia and sleeping pills are related.