My elderly mother-in-law couldn't sleep while she was recovering from surgery, so the doctor on duty prescribed a popular but powerful sleeping pill. I won't mention its name. Instead of sleeping, she started jumping around on the bed, pulling out her IVs and talking in a gibberish language. The nurses called us for permission to put her in soft restraints because of her unruly behavior.
The following morning, we told her regular doctor about the sleeping pills and her reaction. He looked at me and said "The doctor actually prescribed (brand name sleep aid) to an 83 year old woman?". As it turned out, that particular drug had a lot of known side effects, especially among the elderly. He took her off that medication right away and prescribed another sleeping pill.
I'd say choose a strong sleeping pill according to your needs, not according to what you see in TV commercials. Some prescription sleep aids may have adverse side effects, and they can remain in your system for hours. Do your research and choose wisely.