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 three wooden shape sorter boxes with a single vermilion peg in front of them

Delete Qualified Rows From Multiple Tables: A SQL Puzzle

July 13, 2019
Pinal Dave
SQL Puzzle
SQL Delete, SQL Performance, SQL Scripts

Delete qualified rows from multiple tables with as few logical reads as you can. This puzzle gives a setup script for three small tables, the two rules for the delete and a starting script that costs 19 logical reads. Your task is to beat that number and stay correct.

Read More
Gouache painting of a bare kitchen counter with one vermilion jar brought back from the pantry

DBCC DROPCLEANBUFFERS Impact on Memory: See a Cold Cache in Action

July 11, 2019
Pinal Dave
SQL Performance
SQL Memory, SQL Scripts, SQL Server DBCC

DBCC DROPCLEANBUFFERS removes every clean page from memory, so the next query reads from disk. This post counts the pages of one database before and after, shows why a CHECKPOINT comes first, and compares a cold read with a warm read.

Read More
Title card: Wait Type: PARALLEL_BACKUP_QUEUE

SQL SERVER – What is Wait Type Parallel Backup Queue?

July 10, 2019
Pinal Dave
SQL Tips and Tricks
Parallel, SQL Backup and Restore, SQL Scripts, SQL Server, SQL Wait Stats

Only official documentation which I could find was about wait statistics related to Parallel Backup Queue is very little available online.

Read More
A small potted plant is connected to a larger source plant

What is Source_Database_ID in Sys.Databases?- Interview Question of the Week #232

July 7, 2019
Pinal Dave
SQL Interview Questions and Answers
Snapshot, SQL High Availability, SQL Scripts, SQL Server, SQL System Table

Question: What is Source_Database_ID in Sys.Databases and why it is mostly NULL? Very interesting question, I received indeed.

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
Gouache painting of a sand timer with vermilion sand between two trays of pears on a wooden table

CHECKPOINT Impact on Memory: Watch Dirty Pages Go to Zero

July 3, 2019
Pinal Dave
SQL Performance
SQL DMV, SQL Memory, SQL Scripts

CHECKPOINT impact on memory is easy to measure. This post counts the dirty and clean pages of one database before and after a checkpoint. Dirty pages drop to zero, the clean pages grow by the same amount, and nothing leaves memory.

Read More
Previous 1 … 69 70 71 72 73 74 75 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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