Friday, March 23, 2012

How to terminate the client connections manually?

Hi guys,

You know when restoring a database in SQL Server, exclusive access is required. With sp_who I can see the clients. But I don't know how to terminate the client connections easily. Usually I have to stop the server and restart it. I DO think it's too troublesome. Do you have any ideas? Is there any sp or command, or tool that may help? How do you deal with this issue?

Thanks!

Have a look at the kill command.|||Refer to Books Online, Topic: KILL Statement

No comments:

Post a Comment