Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Drop all Connections from a Database Expand / Collapse
Author
Message
Posted Saturday, September 29, 2007 8:20 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, October 2, 2013 9:26 AM
Points: 265, Visits: 185
Comments posted to this topic are about the item Drop all Connections from a Database
Post #404527
Posted Thursday, June 12, 2008 12:38 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, September 13, 2014 12:48 PM
Points: 4, Visits: 49
I use this:

ALTER DATABASE dbName SET SINGLE_USER WITH ROLLBACK IMMEDIATE
Post #516184
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse