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
A room key and a separate outer gate key show different access scopes.

SQL SERVER – Creating a Login and Database User Without Automatic Sysadmin Grants

May 16, 2018
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server, SQL Server Security

To Create a Login and User, I separate the instance identity from database access. Database ownership and sysadmin membership have different scopes.

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
The newest sealed backup jar stands before older archives with a measuring ribbon

How to Find Last Full Backup Time and Size for Database? – Interview Question of the Week #173

May 13, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Backup and Restore, SQL Scripts, SQL Server

Too many DBAs I meet have no recent backup. Here is a script that shows when each database had its last Full Backup and how big that backup was.

Read More
Gouache painting of a long wooden boat hull in a yard with a vermilion-handled hammer on a plank

DBCC CHECKDB Running Slow? Check the MAXDOP Option

May 10, 2018
Pinal Dave
SQL Performance
MAXDOP, SQL Scripts, SQL Server, SQL Server DBCC

DBCC CHECKDB running slow can trace back to the MAXDOP option. A CHECKDB with no MAXDOP option uses the server’s max degree of parallelism, and one with its own option overrides it. This post times CHECKDB on a 2 GB database with four settings, adds PHYSICAL_ONLY, and lists the other causes to rule out.

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 a snail crossing a wooden gate with a vermilion wizard hat on the gatepost

Restore Database Wizard Slow to Open in SSMS

May 7, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server Management Studio

The Restore Database Wizard reads the backup history stored in msdb before it opens. When that history has grown for years, the wizard is slow. This post counts the history, deletes it in monthly steps with sp_delete_backuphistory, shows how to clean one database’s history, and sets up a regular cleanup so the wizard stays fast.

Read More
Previous 1 … 99 100 101 102 103 104 105 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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