This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Gouache painting of a small locomotive pulling a single red wagon with nothing behind it on an empty track

How to Attach a Database Without Log File in SQL Server

August 26, 2016
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Server, SQL Server Management Studio, Transaction Log

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.

Read More
A small red boat ferrying a few crates at a time from a big heap on one quay to a pile across the water

Deleting Millions of Rows in Batches Without Filling the Log

August 9, 2016
Pinal Dave
SQL Performance
Batch, SQL Delete, SQL Server, Transaction Log

Plan deleting millions of rows with bounded commits, an indexed cutoff, log reuse checks, and a clear choice of retention method.

Read More
A grounded blue kite with a new cord and an old detached cord

How to Attach MDF Data File Without LDF Log File – Interview Question of the Week #078

July 3, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Backup and Restore, SQL Scripts, SQL Server, SQL Server Management Studio, Transaction Log

Lost or corrupted your log file? Learn how to attach an MDF data file without the LDF log file, using T-SQL or SQL Server Management Studio.

Read More
A hand scooping a red goldfish from a cracked fishbowl into a jug of clean water with a small net.

Tail-Log Backup: Saving the Last Transactions Before a Restore

June 28, 2016
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Server, Transaction Log

Take a tail-log backup before an approved restore, understand NORECOVERY and damaged-database options, and rehearse the full recovery chain.

Read More
SQL SERVER - Huge Transaction Log in Snapshot Replication!

SQL SERVER – Huge Transaction Log in Snapshot Replication!

April 7, 2016
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, Transaction Log

The log kept growing and sys.databases showed REPLICATION as the reuse wait. Here is how I found why the transaction log in snapshot replication was not reused.

Read More
SQL SERVER – Huge Transaction Log (LDF) for Database in Availability Group

SQL SERVER – Huge Transaction Log (LDF) for Database in Availability Group

February 12, 2016
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, Transaction Log

A reader’s database in an AlwaysOn availability group grew a Huge Transaction Log of 230 GB with error 9002, AVAILABILITY_REPLICA. Here is what to check.

Read More
Honey dipper and a retained trail of honey beside a jar

Tracking sp_configure Changes Through Error Log Messages

January 6, 2016
Pinal Dave
SQL Tips and Tricks
Log Shipping, SQL Error Messages, SQL Log, Transaction Log

Someone changed a setting and nobody admits it. Here is what the SQL Server error log keeps, and what it never records.

Read More
Previous 1 … 5 6 7 8 9 10 11 … 14 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com