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
Aug19

The SQL Basics Almost Everybody Skips

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

Revisit SQL basics that change query results: NULL logic, logical processing order, grouped filters, and the difference between two common counts.

Continue Reading
Aug18

SQL SERVER – Find Last Day of Any Month – Current Previous Next

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

Find the last day of any month with DATEADD and DATEDIFF. One script returns the last day of the previous, current and next month in SQL Server.

Continue Reading
Aug17

SQL SERVER – 2005 – Explanation and Script for Online Index Operations – Create, Rebuild, Drop

Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server DBCC
4 Comments

What are online index operations? SQL Server 2005 Enterprise Edition can create, rebuild and drop indexes without locking tables, and I explain how.

Continue Reading
Aug16

Writing Clear Error Messages in Procedures

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

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

Continue Reading
Aug16

The Dynamic Management Views Worth Knowing by Heart

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

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

Continue Reading
Aug16

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

Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts
15 Comments

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

Continue Reading
Aug15

SQL SERVER – Insert Data From One Table to Another Table – INSERT INTO SELECT – SELECT INTO TABLE

Pinal Dave
SQL Performance
SQL Scripts, SQL Stored Procedure
677 Comments

How to copy data from one table to another without a cursor: INSERT INTO SELECT for an existing table, or SELECT INTO to create a new table.

Continue Reading
Previous 1 … 804 805 806 807 808 809 810 … 846 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