Pages

Ads 468x60px

Social Icons

Featured Posts

Search

How to close all connections to a MSSQL database

Monday, 5 September 2011

This script closes all connections to MS SQL database

USE master;
GO
ALTER DATABASE dbName
SET SINGLE_USER
WITH ROLLBACK IMMEDIATE;
GO
ALTER DATABASE dbName
SET MULTI_USER;
GO

1 comment

  1. I didn't know where to find this info then kbaoom it was here.

    ReplyDelete

 

Most Popular