To deny drop permission for a table, deny ALTER on its schema, because DENY DELETE only stops row deletes. This post tests both on a demo database and shows what each deny blocks and what it leaves open.
SQL SERVER – Checking Column Existence Is Different from DROP IF EXISTS
I use COL_LENGTH to Check If a Column Exists in visible metadata. Conditional DROP instead performs a deletion.
SQL SERVER – Session Counts by Database Are Not Lock Row Counts
Total Sessions and total lock rows answer different questions. My original query counted lock rows under a session label.
SQL SERVER – Rebuilding Index with Compression
To rebuild an Index with Compression, I target its own settings and partitions. Customer ROW and PAGE results need separate evaluation.
System Threads Outside Max Worker Threads in SQL Server
System threads outside max worker threads run background work that the setting does not limit, as the documentation says. This post counts the background tasks with two read-only queries and explains what that means for sizing the setting.
SQL SERVER – Types of Triggers
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.







