Lee posted on February 11, 2009 09:18
Neat way blow users out of a database. Very nice!


Here's a handy script by Pinal Dave for killing all connections within a database in SQL Server.
 

 

 

 
------------------------------


How many times has each of us written some version of this thing?

 

http://blog.sqlauthority.com/2006/12/01/sql-server-cursor-to-kill-all-process-in-database/


Posted in:   Tags:
blog comments powered by Disqus

by Lee Everest, M.S.

Poll

Do you use Azure or cloud in your organization?



Show Results

Ads

Search


Month List

Calendar

«  February 2012  »
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011
View posts in large calendar

Tags

Disclaimer
The opinions, code, examples, et.al. expressed herein are my own personal opinions and do not represent my employer's view in any way, shape form, or fashion.  All code for demonstration purposes - no guarantees, either written or implied, are made.

© Copyright 2012 Lee Everest's SQL Server, etc. weblog