How do you kill all current connections to a SQL Server 2005 database?
Posted
by Adam
on Stack Overflow
See other posts from Stack Overflow
or by Adam
Published on 2008-08-14T19:54:25Z
Indexed on
2010/05/12
10:44 UTC
Read the original article
Hit count: 180
sql-server
|sql-server-2005
I want to rename a database, but keep getting the error that 'couldnt get exclusive lock' on the database, which implies there is some connection(s) still active.
How can I kill all the connections to the database so that I can rename it?
© Stack Overflow or respective owner