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 shut wooden cabinet with a vermilion key stuck halfway in the keyhole beside a ring of brass keys

msdb Upgrade Error 916: Fix the Database Owner

July 19, 2019
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server Security, SQL Upgrade, System Database

A msdb upgrade error can stop the service at the last upgrade step. The post reads the ERRORLOG, shows a read-only owner check, and walks through the four steps that fix the owner of msdb. The fix is one ALTER AUTHORIZATION statement.

Read More
Gouache painting of a jammed grain chute in a barn with sacks piled high and the top sack in vermilion

sysxmitqueue in msdb: Why It Grows and How to Clear It

July 6, 2019
Pinal Dave
SQL Tips and Tricks
Service Broker, SQL Scripts, SQL Server, System Database

Sysxmitqueue in msdb fills up when Service Broker messages cannot leave the server. A tested demo in its own database shows the pile, the reason, a one conversation cleanup and the NEW_BROKER reset. The msdb steps follow the same order.

Read More
CLONEDATABASE

SQL SERVER – DBCC CLONEDATABASE Error: Cannot Insert Duplicate Key Row In Object ‘sys.sysschobjs’ With Unique Index ‘clst’.

July 4, 2019
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Server DBCC, SQL System Table, System Database, System Object

Learn how to fix: Cannot insert a duplicate key row in object ‘sys.sysschobjs’ with unique index ‘clst’ while using DBCC CLONEDATABASE.

Read More
A doorstop holding an unattended heavy door and preventing a rug from passing

Finding Long Open Transactions With sys.dm_tran_database_transactions

April 26, 2019
Pinal Dave
SQL Tips and Tricks
Shrinking Database, Spatial Database, SQL Transactions, System Database

A forgotten BEGIN TRAN can pin your log for hours. Here is how to find the owner, read its age, and confirm the transaction is the reason.

Read More
Logical and Physical Names of Files in SQL Server Database.

SQL SERVER – Get List of the Logical and Physical Name of the Files in the Entire Database

November 19, 2018
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, System Database

During a Health Check we needed the logical and physical name of every file in every database on the instance. Here is the script I built, with the file type too.

Read More
A flax brake handling coarse fiber while finer strands extend beyond its working reach

Deprecated System Tables: Replacing sysobjects and sysindexes

November 9, 2018
Pinal Dave
SQL Performance
SQL Deprecated Feature, SQL System Table, System Database, System Object

Old catalog views still answer, but their page counts can be far too small. A short demo shows the gap and how to replace them.

Read More
An ink brayer leaving a new continuous track while earlier linen stays clean

Recording Who Granted What With a Database Audit Specification

August 11, 2018
Pinal Dave
SQL Tips and Tricks
Shrinking Database, Spatial Database, SQL Sample Database, System Database

Current permissions never say who changed them. Set up a small audit, run a grant, a revoke and a failed attempt, and read the events back.

Read More
Previous 1 2 3 4 5 6 Next
  • Books
  • Testimonials
  • Privacy Policy

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