To attach a database without log file, run CREATE DATABASE with FOR ATTACH_REBUILD_LOG, or remove the missing log in the SSMS Attach dialog. This tutorial builds a demo database, detaches it, and rebuilds the log on attach. It also explains when the rebuild is impossible and what to check afterward.
Listing Last Night’s Failed Agent Jobs With One msdb Query
List failed Agent jobs and steps from msdb history, include retries and cancellations, and account for local times and trimmed records.
Physical and Virtual Memory Explained for SQL Server DBAs
Physical and virtual memory are two different things, and SQL Server reports on both. This post explains RAM, address space, the page file and paging in plain words. It then reads each number with three read-only queries and ends with settings worth checking.
Does Dropping Primary Key Drop Non-Clustered Index on the Column? – Interview Question of the Week #085
Does dropping a primary key also drop the Non-Clustered Index on that column? An interview question with a small repro script to see the answer.







