What kind of lock does WITH (NOLOCK) take? Vinod Kumar made me think again: it takes a schema lock, and a quick query on sys.dm_tran_locks proves it.
SQL SERVER – 2008 – 2008 R2 – Create Script to Copy Database Schema and All The Objects – Data, Schema, Stored Procedure, Functions, Triggers, Tables, Views, Constraints and All Other Database Objects
Use the SQL Server script generator wizard to copy database schema, data and all objects, then run the large script with SQLCMD on the new instance.
SQL Assessment API Findings: From Scan to Action
SQL Assessment API findings can guide a health review, provided the scan’s scope and evidence are clear. I separate collection problems from recommendations before deciding what to change. A short list is useful only when I know what was checked.
SQL Server Health Check: Six Checks to Prioritize
A SQL Server health check becomes useful when its findings lead to a clear, justified next step. I start with recovery and access risks before tuning preferences. A warning deserves investigation, but it does not automatically justify a server change.
ROWS vs RANGE in Window Frames: Why Running Totals Differ
Compare ROWS vs RANGE for running totals, handle tied sort values, write explicit frames, and check worktable reads on your server.
Diagnosing a Frozen Server With the Dedicated Admin Connection
The dedicated admin connection provides a narrow emergency path to a stalled SQL Server; prepare remote access and keep diagnostics light.
XML sql:column: Compare XML With a Relational Value
XML sql:column passes a typed relational value into XQuery. Keep node existence separate from a missing document and a scalar Boolean.






