I report Restore Date from the latest retained msdb history row. My earlier query returned every matching entry.
Reclaim Space After Dropping a Column With DBCC CLEANTABLE
To reclaim space after dropping a column, run DBCC CLEANTABLE or rebuild the index. This post measures both on a demo table and shows that CLEANTABLE shrinks the rows while only a rebuild returns the pages.
SQL SERVER – Easiest Way to Copy All Stored Procedure Definitions
Object Explorer Details helps copy procedure definitions through SSMS scripting. I select the procedures and review the generated script before execution.
Agent Job After Another Job: Start the Next Job on Success
To run an Agent job after another job, end the first job with a step that calls sp_start_job for the second. This post builds the pair, reads the steps back from msdb, and explains what the call waits for and what happens when the second job is busy.
Deny Drop Permission for a Table in SQL Server
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.










