I have written a very small C# program, that uses a very small SQL Server database, purely for some learning & testing purposes. The database is used in this one new pro
The simplest thing is go Server Explorer. Choose the problem database. Right-click and choose "Close Connection".
If it is already closed, connect and disconnect.