Simple script to close all connections to a MSSQL database.
USE master; GO ALTER DATABASE dbName SET SINGLE_USER WITH ROLLBACK IMMEDIATE; GO ALTER DATABASE dbName SET MULTI_USER; GO
Simple script to close all connections to a MSSQL database.
USE master; GO ALTER DATABASE dbName SET SINGLE_USER WITH ROLLBACK IMMEDIATE; GO ALTER DATABASE dbName SET MULTI_USER; GO
2 Comments
It worked!
Thank you a lot
It worked. thanks.