What's up!

Pyaarey Allah!

Thursday, June 20, 2013

SQL Server - Release database connections

use master
ALTER DATABASE YourDBName SET SINGLE_USER WITH ROLLBACK IMMEDIATE

--do you stuff here

ALTER DATABASE YourDBName SET MULTI_USER

0 comments: (+add yours?)

Post a Comment