The types of triggers in SQL Server include DML, DDL and logon triggers. A customer requested this three-part summary.
SQL SERVER – How to Break Mirroring?
SET PARTNER OFF can break mirroring by permanently removing its relationship. I confirm the intended outcome before either command.
Trigger Blocks Index Maintenance: How to Let Rebuilds Pass
A trigger blocks index maintenance when it guards every index event, because a rebuild is an index event too. This post shows the failure, then a trigger that reads EVENTDATA and lets rebuilds through while it still blocks create, drop and disable.
Prevent Unauthorized Index Modifications – SQL in Sixty Seconds #183
Many people asked me to create a video on the same topic, so we have Prevent Unauthorized Index Modifications. Here is the video.
SQL SERVER – Trigger on Database to Prevent Table Creation
A Trigger on Database scope can reject CREATE_TABLE events. A customer required this rule, though I preferred ordinary permissions.
Reading the Connectivity Ring Buffer for Dropped Connections
The error log says nothing, but the connectivity ring buffer may remember. Here is how to read it and what it cannot tell you.
Size and Rows of Each Table in SQL Server, Indexes Included
To list the size and rows of each table, add up the pages from sys.dm_db_partition_stats and split them into data, index and unused space. This post shows three traps in the common join query and checks the corrected result against sp_spaceused.







