Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
ggarza75
Yak Posting Veteran
50 Posts |
Posted - 2009-01-08 : 15:24:20
|
Can someone help me with the syntax to kill connections.I have user1 making several connections to DB1. How can I kill those multiple user1 connections?Thanks. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
ggarza75
Yak Posting Veteran
50 Posts |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
ggarza75
Yak Posting Veteran
50 Posts |
Posted - 2009-01-08 : 16:09:58
|
quote: Originally posted by tkizer Then kill them all.KILL 75KILL 90KILL 110Are you looking for a script that'll find them all for you?Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/Subscribe to my blog
For early Saturday morning, I want to schedule a job to kill all that user1 connections. This user1 account has several connections. Without having to see what SPIDS this account has, I wanted to kill all connections the user1 account has open without having to specify the SPID since there will be many spids.Thanks. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
ggarza75
Yak Posting Veteran
50 Posts |
Posted - 2009-01-08 : 16:19:48
|
Thank you very much |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|
|