I had a really difficult time with the actual surgery part...I kept picturing it in my head & it was terrible! So, I decided (with some advice from my sister, who had already been through it) to focus on the sleep. Prior to my surgery, every time I had a scary picture pop into my head, I thought about falling asleep instead. Falling into an uninterrupted, solid sleep (something I think is so rare for most of us these days). Friends & family helped a lot, too. They really helped lift my spirits & remind me that I was saving my own life. I was brave & they admired/supported me for that. That helped. :)
On the day of surgery, I thought about breathing calmly all the way to the hospital (about an hour), especially because my day did not start as expected! They changed my appt time early that morning & everything felt rushed. I called a friend, who reminded me that it didn't matter what time it was or that things had changed...I was going to go through the same thing & should use the plans I had. So I continued to make efforts to breathe calmly (to the point of meditation, perhaps). I thought about easily changing into my hospital gear & leaving my mother in the waiting room. I told myself I had been taken care of so well to this point by my doctors that I knew I was in good hands. I pictured Mom reading her Kindle & maybe even dozing off a bit here & there (it was early morning) & found comfort in the fact that I knew she'd be there when I woke up. Things went as smoothly as I had imagined & I attribute that to remaining calm & breathing. And then I focused on the wonderful feeling of falling asleep. I had showered the night before & felt very clean & that helped reduce my modesty, once on the table. They moved me into position & I focused on breathing...I mean I actually focused on the feeling, the sound, & the sensation of breath entering & exiting my lungs.
Throughout the entire process, there was still an underlying layer of anxiousness...but the breathing & looking forward to that peaceful, long sleep made it so much easier to overcome. Then the doctor says to talk or count back from 100 or whatever they say & you're finally in that wonderful, deep sleep.
It may sound sort of lame, but I was having panic attacks & crying fits about the surgery, so I had to try something. And this worked for me. :) I hope it helps you in some way.