HOME - ABOUT

Archive for August, 2007

MS SQL Server: Kill All Connections to a Database

Wednesday, August 22nd, 2007

Have you ever needed to kill all the connections to a database in MS SQL Server? Do you go to the Process Info screen, right-click every process, clicking Kill Process and then hitting Y in the confirmation box? What a hassle.

(more…)

MS SQL Server: Find a Value In Any Field In Any Table

Monday, August 20th, 2007

As part of a project at work, I found myself needing to update every field in an entire database that contained a certain value. If I had needed to do this in a database I had created or a database that didn’t have hundreds of tables, I might have done it manually like I have done it in the past. But that wasn’t the case, so I needed to find a better solution.
(more…)