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
Apr25

SQL SERVER – ERROR Messages – sysmessages error severity level

Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server Security
22 Comments

SQL Server ERROR Messages explained: each has a number, a severity level and a state from 1 to 127, and all of them are stored in the sysmessages system table.

Continue Reading
Apr25

SQL SERVER – 2005 Take Off Line or Detach Database

Pinal Dave
SQL Performance
SQL Scripts
25 Comments

To take off line a database in SQL Server 2005, use ALTER DATABASE SET OFFLINE with ROLLBACK AFTER 30 SECONDS or ROLLBACK IMMEDIATE instead of sp_dboption.

Continue Reading
Apr24

SQL SERVER – TRIM() Function – UDF TRIM()

Pinal Dave
SQL Performance
SQL Function, SQL Scripts
127 Comments

SQL Server 2005 has LTRIM() and RTRIM() but no TRIM() function, so I wrote a simple UDF for SQL Server 2000 and 2005 that trims both sides. Video included.

Continue Reading
Apr24

SQL SERVER – Six Properties of Relational Tables

Pinal Dave
SQL Tips and Tricks
14 Comments

The six properties of relational tables explained: atomic values, values of the same kind, unique rows and more, with the benefit of each one.

Continue Reading
Apr24

SQL SERVER – 2005 Collation Explanation and Translation

Pinal Dave
SQL Tips and Tricks
SQL Collation
25 Comments

How to read a SQL Server 2005 Collation name like Latin1_General_CI_AS, check which collation you have, and avoid collation conflict errors.

Continue Reading
Apr23

IIF and CASE: Control Return Types and Use Typed NULL Values

Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Function, SQL Scripts, SQL Server
No Comments

IIF and CASE choose result values, but their branches also define a shared return type. I make that type explicit when mixed inputs could surprise the reader. Typed NULL values help describe the same output contract.

Continue Reading
Apr23

SQL SERVER – Query to Find Seed Values, Increment Values and Current Identity Column value of the table

Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Identity, SQL Index, SQL Scripts, SQL Server, SQL System Table
20 Comments

A query to list every identity column with its seed, increment and current value, plus what those numbers mean and how to reseed a table safely.

Continue Reading
Previous 1 … 828 829 830 831 832 833 834 … 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