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 – The procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead.

Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure
5 Comments

Why does SQL Server say a procedure attempted to return a status of NULL and returns 0 instead? A reader asked on Facebook, and I explain what it means.

Continue Reading
Apr7

How to Pass Stored Procedure Result to Another Procedure in SQL Server

Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL Variable
13 Comments

To pass stored procedure result values from one procedure to another, use an OUTPUT parameter. This post tests RETURN codes, INSERT … EXEC and table-valued parameters on a small order demo. It also shows the errors each method raises and when a function is the better tool.

Continue Reading
Apr6

Auditing WITH GRANT OPTION: Who Can Hand Out Permissions

Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Login, SQL Server, SQL Server Security
No Comments

Audit WITH GRANT OPTION at database and server scope, trace delegated permissions, and remove delegation with a reviewed CASCADE plan.

Continue Reading
Apr5

SQL SERVER – Group by Rows and Columns using XML PATH – Efficient Concating Trick

Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL String, SQL XML
24 Comments

A reader wanted students and courses grouped by course and instructor in a single row. Here is a simple concatenation trick with XML PATH that does it.

Continue Reading
Apr4

What Is a Deadlock in SQL Server?

Pinal Dave
SQL Performance
Best Practices, Database, SQL Performance, SQL Server
63 Comments

A deadlock in SQL Server is two sessions each holding what the other needs. I caused one on purpose and read error 1205. Why it is not the same as blocking, who gets killed, and the boring fix that works.

Continue Reading
Apr3

Cannot Resolve the Collation Conflict (Msg 468): SQL in Sixty Seconds #047

Pinal Dave
SQL Video
SQL Collation, SQL Column, SQL Error Messages, SQL in Sixty Seconds
1 Comment

Cannot resolve the collation conflict is Msg 468, and it appears when two text columns use different collations. I reproduced it on SQL Server 2025 with a temp table, found the mismatched columns with a query and tested three fixes, from a COLLATE clause in the query to changing the column itself.

Continue Reading
Apr2

Overlapping Indexes With INCLUDE Columns: Merging Them Safely

Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Index, SQL Performance
1 Comment

Find overlapping indexes, compare ordered keys and INCLUDE lists, merge coverage carefully, and review usage before removing either index.

Continue Reading
Previous 1 … 493 494 495 496 497 498 499 … 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