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,480 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,076 reads

Blogs

Advice I Like: Ranch Rules

By

Leave a gate behind you the way you first found it. – from Excellent...

Fix Slow, Bloated MSDB: Purge Old History And Add Missing Indexes

By

Fix Slow, Bloated MSDB: Purge Old History And Add Missing Indexes ...

Three Ways to Use Snowflake Data in Microsoft Fabric

By

Organizations increasingly want Snowflake and Microsoft Fabric to coexist without duplicating data or fragmenting...

Read the latest Blogs

Forums

SSIS 2019 or 2022 - Microsoft Connector for Oracle

By cpiacente

Hello all, I am having one heck of a time installing Microsoft Connector for...

bringing a .bak across the wire without rdp'ing or mapping into the sql server

By stan

hi,  a peer of mine would like to be self sufficient in bringing small...

Automating Database Cleanup for PostgreSQL Using Python

By sabyda

Comments posted to this topic are about the item Automating Database Cleanup for PostgreSQL...

Visit the forum

Question of the Day

The Query Optimizer and Page Density

If I have a fillfactor set to 70%, this reduces my page density to roughly 70%. Does this affect the query plans that the optimizer chooses?

See possible answers