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
Model dialog in sql server 2016 login properties.

SQL SERVER – SQL Server Cluster Resource Doesn’t Come Online Randomly

May 19, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Cluster, SQL System Table, SQL Trace, System Database

A client’s SQL Server Cluster Resource sometimes failed to come online after a failover to another node. Here is what caused it and how we fixed it.

Read More
Gouache painting of a train siding with a long loaded flatcar blocking a waiting vermilion wagon

How an Open Transaction Uses Free Log Space

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

An open transaction holds free log space hostage. This post runs one transaction in a SIMPLE recovery database and reads the log after the load and after the commit. It explains why the log grows before COMMIT, what ACTIVE_TRANSACTION means, and why a new FULL recovery database behaves like SIMPLE until its first full backup.

Read More
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
Error dialog box warning icon.

SQL SERVER – Databases Going to Recovery Pending State Randomly

May 15, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Log, SQL Server, Starting SQL

A client’s databases kept going to recovery pending state randomly. The ERRORLOG showed why. Here is how I found the cause and fixed it.

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
Previous 1 … 123 124 125 126 127 128 129 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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