Upper gastrointestinal endoscopy is often accompanied by tachycardia which is known to be an important pathogenic factor in the development of myocardial ischemia. The pathogenesis of tachycardia is unknown but the condition is thought to be due to the endocrine response to endoscopy. The purpose of the present study was to investigate the effects of sedation on the endocrine response and cardiorespiratory function. Forty patients scheduled for diagnostic upper gastrointestinal endoscopy were randomized into 2 groups. While the patients in the first group did not receive sedation during upper gastrointestinal endoscopy, the patients in the second group were sedated with intravenous midazolam at the dose of 5 mg for those under 65 years or 2.5 mg for those aged 65 years or more. Midazolam was administered by slow infusion. In both groups, blood pressure, ECG tracing, heart rate, and peripheral oxygen saturation (SpO 2 ) were monitored during endoscopy. In addition, blood samples for the determination of cortisol, glucose and C-reactive protein levels were obtained from patients in both groups prior to and following endoscopy. Heart rate and systolic arterial pressure changes were within normal limits in both groups. Comparison of the two groups regarding the values of these two parameters did not reveal a significant difference, while a statistically significant reduction in SpO 2 was found in the sedation group. No significant differences in serum cortisol, glucose or C-reactive protein levels were observed between the sedated and non-sedated group. Sedation with midazolam did not reduce the endocrine response and the tachycardia developing during upper gastrointestinal endoscopy, but increased the reduction in SpO 2 .