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
Jun30

The real Data Type: Seven Digits of Precision and Overflow

Pinal Dave
SQL Tips and Tricks
Mathematics, SQL Data Storage, SQL Datatype, SQL Error Messages
No Comments

Four bytes look like a bargain until a total comes out wrong. Watch real round, overflow and drift, then decide when decimal is the safer pick.

Continue Reading
Jun29

SQL SERVER – Find Details for Statistics of Whole Database

Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server, SQL Statistics
19 Comments

Need statistics of whole database in one view? My script uses DMVs instead of the deprecated sp_helpstats and shows each stat, column and last update.

Continue Reading
Jun28

CROSS JOIN: Duplicate Inputs Multiply the Result

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

CROSS JOIN multiplies row counts, including repeated labels. Keep source identifiers and grouped pair counts visible while checking result grain.

Continue Reading
Jun27

SQL SERVER – Puzzle Involving NULL – Resolve – Error – Operand data type void type is invalid for sum operator

Pinal Dave
SQL Puzzle
SQL NULL, SQL Operator, SQL Scripts, SQL Server
33 Comments

SELECT SUM over a lone NULL throws Msg 8117: Operand data type void type is invalid for sum operator. Here is why it happens and how ISNULL fixes it.

Continue Reading
Jun26

SQL SERVER – T-SQL Scripts to Find Maximum between Two Numbers

Pinal Dave
SQL Tips and Tricks
SQL Scripts
24 Comments

A SQL enthusiast at the airport asked for a simple way to find maximum between two numbers. Here is his clever ABS formula and my CASE version.

Continue Reading
Jun25

Tabular Models for the SQL Developer

Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, SQL Analysis Services, SQL Server, SQL View
No Comments

Tabular models for the SQL developer add relationships, measures, security, and reusable semantics above SQL tables; learn when a view is enough.

Continue Reading
Jun24

Summary Tables: Keeping Pre-Aggregated Totals Current

Pinal Dave
SQL Tips and Tricks
Data Warehousing, SQL Server, SQL Server Agent, SQL Trigger, SQL View
No Comments

Keep summary tables current with changed-day rebuilds, handle late arrivals and deletes, and reconcile stored totals against detail.

Continue Reading
Previous 1 … 591 592 593 594 595 596 597 … 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