Technical Article

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)

You rated this post out of 5. Change rating

2007-03-16 (first published: )

365 reads

Blogs

MVP No more, But It’s OK

By

Embracing Limitations: Finding Strength and Purpose in Hard Times For four years, I was...

A New Word: Fitching

By

fitching – v. intr. compulsively turning away from works of art you find frustratingly,...

Copilot in Microsoft Fabric

By

Microsoft Copilot is an app that uses AI to help you find information, create content,...

Read the latest Blogs

Forums

Updated Table Not Displaying Data

By yrstruly

I have a table that contains data only to Financial Year/FY 2024: CREATE TABLE...

Pase keywords in text string

By Bruin

I've been trying to find an example to parse a record that looks for...

Exploring Generative Adversarial Networks (GANs) for Butterfly Image Generation

By Rohit Alladi

Comments posted to this topic are about the item Exploring Generative Adversarial Networks (GANs)...

Visit the forum

Question of the Day

A Valid Type?

What happens when I run this code in SQL Server 2019?

DECLARE @variable CURSOR;

See possible answers