I've had carpal tunnel surgery on both hands, about 6 months apart, a few years ago now. Did you have a local or general anaesthetic? Mine were both locals and my sugar levels weren't affected as far as I can remember. However, when I've had general anaesthetics, and I've had a few, my sugar levels are always affected. It's because your body goes through quite a stressful time with surgery and we all know how stress can make our sugar levels rise!
I'm a typist by trade and had to take 3 weeks off work each time I had my carpal tunnel done. My first operation was very painful afterwards and took longer to heal, but my second operation (which was done by a much more competent neurosurgeon than the first!) wasn't nearly as bad and I recovered a lot sooner. I still took the full 3 weeks off work though as I wouldn't have been able to type during that period. I remember struggling with almost every chore, doing up my bra was the hardest and I definitely needed my husband's help for that one!
Good luck with the recovery, I hope it's not too painful. Once you're over the pain you'll realise it was the best thing you could have done, trust me!