Scripts

Technical Article

Kill All Users in A Given Database

This script will kill all users in a given database. Before disconnecting, it can optionally send the user a NET SEND Message giving them a warning to disconnect. To run, simply call it like usp_killusers 'dbname'. Make sure the @dbname parameter is not the master database.

(6)

You rated this post out of 5. Change rating

2001-08-08

4,515 reads

Technical Article

Quickly Enable/Disable Triggers and Constraints

When loading data, nothing can be more frustrating than having to deal with stubborn constraints and triggers. This is especially true when you know your data is fine but the constraints are too prohibitive for a mass initial load. Here's a technique I use to disable the constraints and triggers temporarily during a mass load. […]

(1)

You rated this post out of 5. Change rating

2001-08-08

3,102 reads

Blogs

Excellent article on securing msdb

By

Fabiano Amorim has written an excellent article at Simple Talk on securing msdb. Here's...

T-SQL Tuesday #201: Temp Tables

By

This month we have a new host, which I am grateful for. So many...

When Do You Reach For A #temp Table?

By

I needed to do some research because there is more to #temp tables than...

Read the latest Blogs

Forums

Alamat Kantor BCA KCU Tasikmalaya Telp:08217555651

By layanan_Bca88

Hub Via Wa:628217555651 Alamat Jl. HZ. Mustofa No.300, Tuguraja, Kec. Cihideung, Kab. Tasikmalaya, Jawa...

Return all intermediate members of a recursive CTE?

By pietlinden

I wrote a recursive CTE to determine employee levels... but what if I wanted...

Alamat Kantor BCA KCU Dago Telp:08217555651

By m4rt1n4

Hub Via Wa:628217555651 Alamat Jl. Ir. H. Juanda No.118, Lebakgede, Kecamatan Coblong, Kota Bandung,...

Visit the forum

Question of the Day

Escaping Strings

The STRING_ESCAPE() function requires 2 parameters in SQL Server 2025. The first is a string of text and the second is the type of escape rules being used. What are the options for the second parameter?

See possible answers