The investigators designed a study to determine whether dexmedetomidine versus midazolam combined with spinal anesthesia would provide same postoperative sleep quality in patients undergoing transurethral prostatic resection.