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 dents in a hallway rug with muddy boot prints and a vermilion-handled magnifying glass

Find Who Dropped a Table by Reading the Transaction Log

May 17, 2018
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Scripts, SQL Server, Transaction Log

To find who dropped a table, read the transaction log for the DROPOBJ transaction and look up the login behind its security ID. This post runs that search on a demo database, shows the default trace as a second source when the log has been truncated, and explains what to do when everyone shares one login.

Read More
SQL SERVER - FIX: Msg 22004 - The Log File is Not Using Unicode Format

SQL SERVER – FIX: Msg 22004 – The Log File is Not Using Unicode Format

May 14, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Server Agent, Transaction Log

The SQL Server Agent log would not open in SSMS and showed Msg 22004, the log file is not using Unicode format. Here is the setting that fixed it.

Read More
errorole

SQL SERVER – DPM Backup Failure – E_COORD_LOG_CHAIN_BROKEN – The Backup Failed Because of a Gap in The LSN the Log Files

May 12, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Error Messages, SQL Server, SQL Server Security, Transaction Log

SQL SERVER – DPM Backup Failure – E_COORD_LOG_CHAIN_BROKEN – The Backup Failed Because of a Gap in The LSN the Log Files

Read More
An allocated chest has empty space inside while keeping its full shelf footprint.

SQL SERVER – How to Find Free Log Space in SQL Server?

May 8, 2018
Pinal Dave
SQL Tips and Tricks
SQL Activity Monitor, SQL Scripts, SQL Server, Transaction Log

Free Log Space is reusable capacity inside an allocated transaction log. I measure disk space and file size separately.

Read More
Gouache painting of full apple baskets in the grass beside one empty vermilion basket

Transaction Log Backups Based on Log Size

April 24, 2018
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Backup and Restore, SQL Scripts, Transaction Log

Transaction log backups on a schedule can miss a burst of activity that fills the disk. This post builds a procedure that reads the log written since the last backup and takes a log backup once it passes a limit you choose. It also explains why the old habit of shrinking the log after each backup does harm.

Read More
Gouache painting of a tall wooden spool wound with cream thread, one short stretch of the thread tied in a vermilion knot

Backup Detected Log Corruption: Context Is Bad Middle Sector

March 31, 2018
Pinal Dave
SQL Tips and Tricks
Database Corruption, SQL Backup and Restore, SQL Error Messages, Transaction Log, VLF

Backup detected log corruption in a client’s database, and every full backup failed at exactly 60 percent. Instead of rebuilding the log, we checked the VLFs and found a log waiting on REPLICATION. Removing the leftover replication fixed the backup.

Read More
A leather bellows changes from many tight folds to a few broad folds

How to Reduce High Virtual Log File (VLF) Count? – Interview Question of the Week #162

February 25, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, Transaction Log

Found a high Virtual Log File (VLF) count in your database? Here are the steps I follow to bring the count down, starting with the log file details.

Read More
Previous 1 … 3 4 5 6 7 8 9 … 15 Next
  • Books
  • Testimonials
  • Privacy Policy

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