I left this comment in the comment box for you:
Many old people have trouble sleeping. Your grandmother knows best what she needs. A sleeping tablet should only be prescribed by a doctor. It may take half an hour or so to put her to sleep and she might sleep for a few hours or all night. It really depends on what is keeping her awake.
We really can't help you here. You need a doctor.