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

SQL SERVER – The procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead.

April 8, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure

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.

Read More
Gouache painting of a wooden chute carrying a red apple from one crate of green apples into another

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

April 7, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL Variable

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.

Read More
SQL SERVER - Group by Rows and Columns using XML PATH - Efficient Concating Trick

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

April 5, 2013
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL String, SQL XML

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.

Read More
60 x 60 clock image.

SQL SERVER – Resolve Cannot Resolve Collation Conflict Error – SQL in Sixty Seconds #047

April 3, 2013
Pinal Dave
SQL Video
Database, SQL in Sixty Seconds, SQL Scripts, SQL Server Management Studio

A collation conflict error is common when databases use different collations. This SQL in Sixty Seconds video shows how to resolve it and why collation matters.

Read More
SQL SERVER - Identity Fields Review - The SQL Query Techniques Tutorial for SQL Server 2012

SQL SERVER – Identity Fields Review – The SQL Query Techniques Tutorial for SQL Server 2012

March 26, 2013
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Identity, SQL Scripts, SQL Server

Identity Fields Review is a chapter abstract from the Joes 2 Pros SQL Query Techniques Tutorial for SQL Server 2012, a book first tested in my classroom.

Read More
SQL SERVER - Identify Last User Access of Table using T-SQL Script

SQL SERVER – Identify Last User Access of Table using T-SQL Script

March 21, 2013
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts

How do you find the last user access of a table? A question at TechEd India 2013 led to this quick DMV script. Keep in mind the data resets on restart.

Read More
A pastry docker above equal pastry sheets turned in different directions

Does Column Order in CREATE TABLE Change How Rows Are Stored?

March 17, 2013
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server

Someone wants to reorder columns to shrink rows. I measured it on SQL Server 2025, and the answer is mostly no, with one small exception worth knowing.

Read More
Previous 1 … 190 191 192 193 194 195 196 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com