We are planning to detect not less than 30% decrease of rescue propofol consumption when using intranasal dexmedetomidine. Assuming the average propofol consumption for the upper gastrointestinal endoscopy to be 40mg with SD=15mg, the required sample size with 80% power of test is 25 per group at the 0.05 level of significance.