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
A stone cairn at a fork in a misty mountain path, its vermilion top stone pointing the way, a distant hiker on that trail.

Writing Clear Error Messages in Procedures

August 16, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Error Messages, SQL Server, SQL Stored Procedure

Clear error messages in procedures identify the failed operation, useful keys, and next action without exposing sensitive data.

Read More
A compact wooden organizer holding several simple measuring tools on a softly lit workbench.

The Dynamic Management Views Worth Knowing by Heart

August 16, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Use dynamic management views to inspect active requests, waits, cached queries, index activity, and file space without guessing at server health.

Read More
SQL SERVER - 2005 - Difference and Similarity Between NEWSEQUENTIALID() and NEWID()

SQL SERVER – 2005 – Difference and Similarity Between NEWSEQUENTIALID() and NEWID()

August 16, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts

NEWSEQUENTIALID() and NEWID() both create a uniqueidentifier GUID. NEWID() is random while NEWSEQUENTIALID() is sequential, as my test table shows.

Read More
A wooden coin-sorting tray with coins stacked by size, one large coin stuck in the wrong channel, a bag of coins beside it.

GROUP BY Done Right

August 14, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Group By, SQL Joins, SQL NULL, SQL Server

GROUP BY Done Right separates row filters from group filters, handles NULL groups, and avoids totals inflated by careless joins.

Read More
SQL SERVER - What is SQL? How to pronounce SQL?

SQL SERVER – What is SQL? How to pronounce SQL?

August 14, 2007
Pinal Dave
SQL Tips and Tricks
Database, DBA

What is SQL and how do you pronounce SQL? It stands for Structured Query Language, and it is said as S.Q.L. (ess-cue-ell), not sequel.

Read More
SQL SERVER - Fix : ERROR : Msg 1033, Level 15, State 1 The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.

SQL SERVER – Fix : ERROR : Msg 1033, Level 15, State 1 The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.

August 12, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts

Msg 1033: the ORDER BY clause is invalid in views unless TOP or FOR XML is used. My workaround moves ORDER BY to the SELECT that calls the view.

Read More
SQL SERVER - UDF - Validate Integer Function

SQL SERVER – UDF – Validate Integer Function

August 11, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

ISNUMERIC() returns 1 for plus, minus and currency signs, so it is not a safe check. I share the UDF I use to validate integer values instead.

Read More
Previous 1 … 540 541 542 543 544 545 546 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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