There are a lot of different things that you and your spouse probably do together socially but one of the most uncomfortable for a lot of people is going to work functions with one another. It can be uncomfortable for the spouse because everyone at the party can talk about shared experiences and the spouse will end up feeling left out in the cold. It can also be uncomfortable because they don't know how to interact with the co-workers because they aren't sure that they have anything in common.
When you know that you will be attending a work function with your spouse sit down and talk about it. Ask your spouse what you can expect as far as the setting, the people who will be there, and any activities that you will be participating in. Also ask for a brief run down of all of the people who will be there.
Ask who you might like and who you might want to stay away from. When you do this you will go in with a leg up on the situation because you will have a little bit of background information on each person so you know which crowds to migrate to or you may find that you have something in common with the people that your spouse works with.
If you aren't big on these social situations, ask your spouse to stick with you when you are at the function. Remind your spouse that this is not your crowd and you would like it if they could help ease you into the situation instead of leaving you hanging from the moment you get there.
If you talk about this before hand you'll be more likely to avoid those tense moments asking them to hang out with you at the actual function. A lot of couples end up fighting at work events because there wasn't this communication before leaving home, so make sure to have this conversation where you can both be open and honest.
Remember when you are at work functions that the people you are mingling with are not friends but work acquaintances. There is a difference and you need to talk to your spouse ahead of time about what sort of things you should share and what you shouldn't. Some people are very friendly and open and honest with the people that they work with and others are more guarded.
You should be sure to discuss this that way you do not unintentionally blur the line that your spouse has created between their professional and personal lives. When you talk about this before hand you can easily mingle and have a good time without crossing the line, communication is just very important.