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
Jul30

Status Changes Only: Collapsing Repeated Rows With LAG

Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server
No Comments

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

Continue Reading
Jul29

max_column_id_used: How Many Columns a Table Once Had

Pinal Dave
SQL Tips and Tricks
SQL Column, SQL DMV, SQL Scripts, SQL Table Operation
1 Comment

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.

Continue Reading
Jul28

Query Progress: Watching a Running Plan With dm_exec_query_profiles

Pinal Dave
SQL Tips and Tricks
Execution Plan, Maintenance Plan, SQL Server
No Comments

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.

Continue Reading
Jul27

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

Pinal Dave
SQL Video
Execution Plan, SQL in Sixty Seconds, SQL Scripts, SQL Server
No Comments

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%.

Continue Reading
Jul26

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

Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Scripts, SQL Server DBCC
No Comments

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.

Continue Reading
Jul23

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

Pinal Dave
SQL Performance
Execution Plan, SQL Scripts, SQL Server
No Comments

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.

Continue Reading
Jul22

Experience – My Very First YouTube Live

Pinal Dave
SQL Tips and Tricks
SQL Server, YouTube Live
No Comments

My very first YouTube Live started with a microphone problem. Here is my honest look at what went well, what I must improve, and the topics we covered.

Continue Reading
Previous 1 … 61 62 63 64 65 66 67 … 846 Next

SQL Server slow? Let's fix it together in about four hours.

Pinal Dave

In my Comprehensive Database Performance Health Check, you share your screen, I guide you, and we fix your biggest performance troublemakers. No passwords. No remote access.

You keep every script, and the know-how to fix it yourself next time.

Want your whole team to learn it?

My Practical Workshop has no PowerPoint, just live demos. My AI Enablement Workshop shows your team where AI saves hours, and where it quietly costs them.

Over 400 customers have worked with me this way, and not one shared a password. See all consulting options.


Who We Are

Pinal Dave is an SQL Server Performance Tuning Expert and independent consultant with over 24 years of hands-on experience. He holds a Masters of Science degree and numerous database certifications.

Pinal has authored 19 books and 125 Pluralsight courses. To freely share his knowledge and help others build their expertise, Pinal has also written more than 5,800 database tech articles on his blog at https://blog.sqlauthority.com.

Pinal is also a CrossFit Level 1 Trainer (CF-L1) and CrossFit Level 2 Trainer (CF-L2).


Nupur Dave is a social media enthusiast and an independent consultant. She primarily focuses on the database domain, helping clients build short and long-term multi-channel campaigns to drive leads for their sales pipeline.


Shaivi Pinalkumar Dave is a book author and a women’s artistic gymnast.

  • Books
  • Testimonials
  • Privacy Policy

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