Medications are typically used to control pain and anxiety in dentistry. The patient is very rarely out completely during a dental procedure, even if he or she cannot accurately remember the procedure upon waking up.