What does the drug triazolam do?

Few uses. Triazolam is usually used for short-term treatment of acute insomnia including jet lag. It is an ideal benzodiazepine for this use, because its fast onset of action and short half-life allows its user to avoid morning drowsiness, also sometimes used as an adjuvant in medical procedures requiring anesthesia, or to reduce anxiety during brief events like MRI scans.
Dentistry Use. Triazolam is used routinely by many dentist for oral conscious sedation. The medication is very safe when used appropriately. One of the best "side-effect" I've noticed with my patients is they have amnesia so they don't remember the procedure. I posit the patients don't mind this too much. Make sure you ask your dentist if you have questions about medications and why they are using them.