sql server - Is there a way to disconnect a Visual Studio 2008 Schema Compare from a database without closing the schema compare? -
Let's say I compare a schema between two databases (want to use Visual Studio), restore one of them by backup, and run the schema comparisons again. The schema maintains a connection to the comparison database, and SQL Server will not let me run the restored without removing all the connections. Is there any way I can force schema to disconnect without discontinuing it?
You can:
- Close all activities on the database (Click on MSSMS server> Activity Monitor> Closed Processes)
- Delete Database (Turn off All Connections) Then Restore Database
- Change Connection to Other Databases
- Compare schema> turn it off> Restore> Compare open schema