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
Oct10

Count Rows and Indexes for Every Table in SQL Server

Pinal Dave
SQL Performance
Clustered Index, SQL Heap, SQL Index, SQL Scripts
12 Comments

To count rows and indexes for every table, one query on the catalog views answers four questions at once: how many tables, which are heaps, how many nonclustered indexes each has, and how many rows each holds. The post tests it on a demo database and explains where the row count comes from.

Continue Reading
Oct9

SQL SERVER – Identify Numbers of Non Clustered Index on Tables for Entire Database

Pinal Dave
SQL Tips and Tricks
SQL Index
8 Comments

Here is a script that counts each non clustered index on tables across the entire database, and the small story of why I wrote it.

Continue Reading
Oct9

SQLAuthority News – A Conversation with an Old Friend – Sri Sridharan

Pinal Dave
SQLAuthority News
Database, DBA, SQL PASS
3 Comments

My GTalk chat with old friend Sri Sridharan on why he is running for the PASS Board of Directors again after coming so close last year.

Continue Reading
Oct8

SQL SERVER – Recover the Accidentally Renamed Table

Pinal Dave
SQL Puzzle
16 Comments

There is no undo for an accidentally renamed table in SSMS, sadly. Here are a few things you can check to find clues about what the original name was.

Continue Reading
Oct7

Querying External Files With PolyBase

Pinal Dave
SQL Tips and Tricks
Cloud Computing, CSV, File format, SQL Server
1 Comment

PolyBase and SQL Server external tables expose CSV and Parquet files through schemas, while query plans show whether filters reduce remote work.

Continue Reading
Oct6

Time Ago Labels: Showing ‘5 Minutes Ago’ From a Timestamp

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

Learn time ago labels in SQL Server with practical examples, clear checks, common traps, and guidance for your own database.

Continue Reading
Oct5

SARGable Date Filters: Stop Wrapping Columns in Functions

Pinal Dave
SQL Performance
SQL DateTime, SQL Function, SQL Index, SQL Performance, SQL Server
19 Comments

Write SARGable date filters as half-open ranges for years, months, days, and rolling windows, then compare plans and logical reads.

Continue Reading
Previous 1 … 519 520 521 522 523 524 525 … 847 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