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 key-marked folders copied between database cabinets with a duplicate-key warning

DBCC CLONEDATABASE Error Msg 2601: Cannot Insert Duplicate Key Row in sys.sysowners

July 5, 2019
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server DBCC, SQL Server Security

A DBCC CLONEDATABASE error that names sys.sysowners points at a database user name, not at the database owner. The queries here find the conflicting user in model and in the source database, and I tested them on SQL Server 2025 along with a clean clone.

Read More
Gouache painting of key-marked folders copied between database cabinets with a duplicate-key warning

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

Investigate a DBCC CLONEDATABASE sys.sysschobjs error with supported catalog checks, original screenshots and a distinct build-specific fix.

Read More
Diagram of the memory buffer with dirty and clean pages: after CHECKPOINT the dirty pages are written to disk and every page in memory is clean; after DBCC DROPCLEANBUFFERS the clean pages are removed from memory and the dirty pages stay

CHECKPOINT vs DBCC DROPCLEANBUFFERS: Impact on Memory

June 17, 2019
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL Memory, SQL Scripts, SQL Server, SQL Server DBCC

CHECKPOINT vs DBCC DROPCLEANBUFFERS comes down to which pages leave memory. CHECKPOINT writes dirty pages to disk, and DBCC DROPCLEANBUFFERS removes clean pages from the buffer pool. Here is the effect on memory, with results.

Read More
Clean plates wait on a drying rack beside a stack ready to put away

What is Clean Buffer in DBCC DROPCLEANBUFFERS? – Interview Question of the Week #215

March 3, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Cache, SQL Memory, SQL Scripts, SQL Server, SQL Server DBCC

What is a clean buffer in DBCC DROPCLEANBUFFERS? No one had asked me this in 20 years, so here is the answer in the simplest words I could find.

Read More
Gouache painting of a paper kite caught high in the branches of a bare tree by its tangled string, with one vermilion ribbon trailing from its tail

PREEMPTIVE_OS_DEVICEIOCONTROL: DBCC CHECKDB Will Not Stop

October 22, 2018
Pinal Dave
SQL Performance
SQL Error Messages, SQL Server, SQL Server DBCC, SQL Transactions, SQL Wait Stats

A DBCC CHECKDB session waiting on PREEMPTIVE_OS_DEVICEIOCONTROL did not end, even after a stop job and a kill. The wait is outside SQL Server’s control, so nothing inside SQL Server could clear it. Restarting SQL Server removed the session.

Read More
Gouache painting of an old brass spyglass beside new binoculars in vermilion on a stone ledge

DBCC PAGE Alternative: Read Page Headers with T-SQL

October 19, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server 2019, SQL Server Architecture, SQL Server DBCC

The best DBCC PAGE alternative is the function sys.dm_db_page_info. This post builds a demo table, lists all of its pages with the allocation view, and compares one page with DBCC PAGE. It also explains the two modes and the page wait use.

Read More
Gouache painting of three seedlings at different heights with a vermilion ribbon on the middle one

Estimated Completion Time for Backup, Restore and DBCC

September 15, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL DMV, SQL Scripts, SQL Server DBCC

The estimated completion time of a backup, restore or DBCC command is one query away. This post builds a monitor query on sys.dm_exec_requests and watches a backup, a restore and a DBCC check in a second window. It also covers STATS and the DBCC step name.

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

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