What happens during your first ultrasound & during a pelvic exam?

Ive never had a pelvic exam so im a bit nervous. Im 20 and pregnant with my baby #1. My first ultrasound is next week and i will be just a day under 9 weeks pregnant. Im nervous to find a heartbeat and im nervous about the entire process. Anyone wanna tell me what goes on during the appointment?