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
Performance Monitor Graph.

SQL SERVER – FIX : Msg 35295, Level 16 – Log Backup For Database ‘DBName’ on a Secondary Replica Failed

March 9, 2017
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Backup and Restore, SQL Mirroring, SQL Server, Transaction Log

During load testing, a log backup on a secondary replica failed with Msg 35295 because the last backup LSN was ahead of the redo LSN. Here is why.

Read More
SQL Authority recovery pending.

SQL SERVER – Unable to Attach Database – File Activation Failure – The Log Cannot be Rebuilt

November 4, 2016
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, Transaction Log

A client lost the log drive and tried ATTACH_REBUILD_LOG, only to get a file activation failure: the log cannot be rebuilt. Here is why and what they could do.

Read More
A grain bin has a small occupied layer and much more available capacity above it

Identify Used Space in Log File- Interview Question of the Week #090

September 25, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Server DBCC, Transaction Log

Question: How to identify Used Space in Log File?

Answer: Use following command to display used log file size and total used space in the log file.

Read More
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
Previous 1 … 5 6 7 8 9 10 11 … 15 Next
  • Books
  • Testimonials
  • Privacy Policy

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