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
May22

SQLAuthority News – T-Shirts in Action

Pinal Dave
SQLAuthority News
SQL T-Shirt
4 Comments

Here are the SQLAuthority T-shirts in action. Thank you for the great response; they ran out fast, so leave your request and I will see what I can do.

Continue Reading
May22

SQL SERVER – 2005 Comparison EXCEPT operator vs. NOT IN

Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Operator, SQL Scripts, SQL Server
63 Comments

The EXCEPT operator returns distinct rows from the left query with no match on the right, just like NOT IN. Both give the same plan, but EXCEPT reads simpler.

Continue Reading
May21

What Is NULL in SQL Server? The Value That Isn’t a Value

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

NULL in SQL Server is not zero and not an empty string. It means the value is unknown, and that changes every comparison you write. Why equals never matches, the NOT IN trap that returns nothing, and where NULL is allowed to live.

Continue Reading
May21

Testing an Application for SQL Injection

Pinal Dave
SQL Tips and Tricks
Developer, Dynamic SQL, SQL Server Security, Testing
2 Comments

Testing an application for SQL injection on a safe copy reveals response clues and unsafe query construction before repair.

Continue Reading
May21

Collecting Server Facts Into One Table Every Night

Pinal Dave
SQL Tips and Tricks
DBA, SQL Monitoring, SQL Server, SQL Server Agent, SQL Server Configuration
No Comments

Collect Server Facts each night to track SQL Server versions, settings, databases, and file sizes in a practical history table.

Continue Reading
May20

Replacing @@ERROR Checks With TRY CATCH in Old Procedures

Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Error Messages, SQL Server, SQL Stored Procedure, SQL Transactions
No Comments

Replace fragile @@ERROR checks with TRY CATCH, transaction state checks, and THROW while preserving clear failure information for callers.

Continue Reading
May20

SQL SERVER – Script/Function to Find Last Day of Month

Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Utility
13 Comments

A one line DATEADD query to find the last day of month for any date. It handles leap years: February 2008 gives the 29th and 2007 the 28th.

Continue Reading
Previous 1 … 819 820 821 822 823 824 825 … 842 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