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
Apr8

SQL SERVER – Maximum Columns per Primary Key – Fix : Error : Msg 1904, Level 16, The index on table has column names in index key list. The maximum limit for index or statistics key column list is 16

Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Index, SQL Scripts
13 Comments

What are the maximum columns per primary key? It is 16, and going past it raises Msg 1904. The same limit applies to foreign keys and index keys.

Continue Reading
Apr8

Reading the SQL Server Support Lifecycle

Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Installation
4 Comments

Read the SQL Server support lifecycle for your exact release, distinguish mainstream and extended support, and plan before coverage ends.

Continue Reading
Apr7

LEFT Boundaries: Zero, Oversized Length and Missing Text

Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL String
No Comments

LEFT boundaries keep empty prefixes separate from missing values. Eight short Unicode cases expose zero, oversized and missing lengths. A separate invalid request shows why negative lengths need validation.

Continue Reading
Apr6

SQL SERVER – Logical Query Processing Phases – Order of Statement Execution

Pinal Dave
SQL Tips and Tricks
Database, Software Development, SQL Joins
38 Comments

Logical Query Processing is the order in which SQL Server handles each clause of a statement, with FROM and ON first and SELECT near the end. Here are the phases.

Continue Reading
Apr5

DATEFROMPARTS: Build Dates With Explicit Components

Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server
No Comments

DATEFROMPARTS avoids ambiguous text assembly. Preserve year, month and day inputs while separating missing components from invalid calendar dates.

Continue Reading
Apr5

SQL SERVER – Mirrored Backup and Restore and Split File Backup

Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Scripts
3 Comments

From a real project: conventional backup and restore, split file backup when a disk runs short of space, mirror file backup, and the FORMAT clause.

Continue Reading
Apr4

EXCEPT: Compare Distinct Sets Including NULL

Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts
No Comments

EXCEPT returns distinct left-side rows absent on the right. Compare direction, duplicates and NULL equality using complete small result sets.

Continue Reading
Previous 1 … 712 713 714 715 716 717 718 … 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