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
Two daisy chains on a lawn with a gap between them, a child's hands starting a fresh chain

Recovery Model Changes and the Log Backup Chain

August 2, 2021
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Log, Transaction Log

Explain the log backup chain across FULL and SIMPLE changes, inspect recovery LSNs and backup history, and establish a new backup boundary.

Read More
A rag rug with broad repeated-color bands and distinct color transitions

Status Changes Only: Collapsing Repeated Rows With LAG

July 30, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

Hundreds of repeated readings, three real changes. Here is how LAG finds them, and why a plain not-equal test quietly drops rows.

Read More
Gouache painting of a xylophone with grey bars on the left and vermilion bars on the right, with a mallet beside it

max_column_id_used: How Many Columns a Table Once Had

July 29, 2021
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL DMV, SQL Scripts, SQL Table Operation

The max_column_id_used column shows how many columns a table ever had. See it grow, find tables that lost columns, and avoid treating column_id as a position.

Read More
A pea sheller with some pods processed and many pods still waiting

Query Progress: Watching a Running Plan With dm_exec_query_profiles

July 28, 2021
Pinal Dave
SQL Tips and Tricks
Execution Plan, Maintenance Plan, SQL Server

Elapsed time cannot tell you if a query is almost done. Live operator rows can. See how to read them and how far to trust the percentage.

Read More
query cost

Tuning Query Cost 100% – SQL in Sixty Seconds #181

July 27, 2021
Pinal Dave
SQL Video
Execution Plan, SQL in Sixty Seconds, SQL Scripts, SQL Server

After the blog posts, lots of people asked me to build a video so here is the video discussing the topic of Tuning Query Cost 100%.

Read More
Gouache painting of a row of measuring jugs at different levels with a fresh one filled through a vermilion funnel

UPDATEUSAGE and Space: What It Fixes and What It Does Not

July 26, 2021
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Scripts, SQL Server DBCC

UPDATEUSAGE and space are two jobs: the command corrects page and row counts but frees no space. See a test where it finds nothing and a rebuild shrinks the table.

Read More
Gouache painting of a seesaw weighed down by one huge orange pumpkin at one end, with a tiny pumpkin raised at the other

Cost Relative to the Batch: Why One Query Shows 100%

July 23, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Scripts, SQL Server

Cost relative to the batch is a share of estimated cost. See why one query shows 100% and when the percent points at the wrong statement.

Read More
Previous 1 … 58 59 60 61 62 63 64 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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