The primary aim of this trial is to demonstrate that the success rate of ERCP is not inferior in patients randomized to deep sedation without orotracheal intubation vs general anesthesia with orotracheal intubation. Secondary aims include a comparison between randomization groups of patient safety, patient and endoscopist satisfaction, duration of patient recovery and of anesthesia procedure.