I have a VB.NET windows application that when I debug it, it opens the connection. At that point I can see there are two processes created by going to the Activity Monitor in SQL Server Management Studio. I execute my query and then immediately close the connection. However, when I do that the processes do not go away.
For the life of me I can't figure out why not. This hasn't been a problem except that I have a Restore option within the software that doesn't let me restore because the database is in use due to the processes still being open. They do not go away until I exit the application.