Navigation

Search

Categories

On this page

Forcing an MS SQL Database to close connections

Archive

Blogroll

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 120
This Year: 1
This Month: 0
This Week: 0
Comments: 40

Sign In
Pick a theme:

# Wednesday, July 25, 2007
Wednesday, July 25, 2007 10:08:28 AM (Mountain Daylight Time, UTC-06:00) ( )

use master
ALTER DATABASE <database>
SET SINGLE_USER WITH ROLLBACK IMMEDIATE

-- do work here

use master
ALTER DATABASE <database> SET MULTI_USER WITH ROLLBACK IMMEDIATE;

Comments [0] | | #