Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Kill SPIDs through automated job(while restore)

By Rinu George Philip,

Here's a script, for killing a SPIDs against a particular database, here am using BIN as the database. We have to change the name of the database accordingly.

This script can be used when we need to check for blockings on a database and helpful, when we have to restore a database especially when the database is in use while restore.

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

Total article views: 1365 | Views in the last 30 days: 2
 
Related Articles
FORUM

Database

Database

FORUM

Database Sync

Database

FORUM

Database suspect

Database

FORUM
FORUM

Database Synchronization

Database Synchronization

Tags
 
Contribute