Midazolam is used to produce sleepiness or drowsiness and to relieve anxiety before surgery or certain procedures. Midazolam is also given to produce amnesia (loss of memory) so that the patient will not remember any discomfort or undesirable effects that may occur after a surgery or procedure. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.