Easily Kill All Users In A Database

This simple script (ran from the master database) in Query Analyser removes all the requirements of collating currently connected spids to a database and the need to systematically open a cursor to kill each spid individually by simply placing the database offline, then immediately online.

2 (1)

2007-03-16 (first published: )

359 reads

Blogs

On Dynamic Ports, Named Instances, and Firewalls

By

Recently I had a client and their vendor trying to configure a firewall for...

Daily Coping 13 Jul 2020

By

I’ve started to add a daily coping tip to the SQLServerCentral newsletter and to...

Last Week Reading (2020-07-12)

By

Press Azure resource providers operations List of all of the available ADF-specific RBAC permissions....

Read the latest Blogs

Forums

The transaction log for database 'mydb' is full due to 'LOG_BACKUP'

By sqlfriend

I got an alert The transaction log for database 'mydb' is full due to...

The C in ACID

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The C in ACID

Renting Features

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Renting Features

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers

Question of the Day

The C in ACID

See possible answers