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
Jun22

COUNT(*) and Index Frequently Asked Questions

Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server
No Comments

My Index Frequently Asked Questions discussion follows the counting video. I distinguish exact results, estimates and the expression being counted.

Continue Reading
Jun21

COUNT(*) and Index – SQL in Sixty Seconds #175

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

Earlier I wrote two blog post on the topic of COUNT(*) and Index and today I have to build a video on that topic as many of you really wanted.

Continue Reading
Jun18

Count Rows in a Heap: Which Scan Does SQL Server Use?

Pinal Dave
SQL Tips and Tricks
Clustered Index, Execution Plan, SQL Heap, SQL Index
No Comments

Count rows in a heap and SQL Server scans every page. See the plan change with a clustered and a narrow index, and why a heap does not compact its pages.

Continue Reading
Jun17

Count Distinct in Access: Use a Subquery in FROM

Pinal Dave
SQL Tips and Tricks
SQL Distinct, SQL Scripts, SQL Server
1 Comment

Count distinct in Access with a subquery in the FROM clause, because Access SQL does not accept COUNT(DISTINCT). Includes NULL and multi-column cases.

Continue Reading
Jun16

SQL SERVER – Identity Column is Difficult to Remove

Pinal Dave
SQL Tips and Tricks
SQL Identity, SQL Scripts, SQL Server
1 Comment

The IDENTITY property is difficult to remove through a column alteration because SQL Server doesn’t support that operation. Existing values need protection.

Continue Reading
Jun15

Index Used for COUNT(*): SQL Server Scans the Narrowest One

Pinal Dave
SQL Performance
Clustered Index, Execution Plan, SQL Index, SQL Scripts
2 Comments

The index used for COUNT(*) is the narrowest one that holds every row. See the pages, the scans and the reads that prove it in SQL Server.

Continue Reading
Jun14

Index Scans – Good or Bad? – SQL in Sixty Seconds #174

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

Index Scans – Good or Bad? Lots of people ask about this question and I have built a blog post on the topic – SQL SERVER – Index Scans are Not Always Bad.

Continue Reading
Previous 1 … 65 66 67 68 69 70 71 … 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