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
Jan29

JSON_ARRAYAGG and JSON_OBJECTAGG: Building JSON From Rows in SQL Server 2025

Pinal Dave
SQL Tips and Tricks
JSON, SQL Function, SQL Server
1 Comment

Build customer arrays with JSON_ARRAYAGG and settings objects with JSON_OBJECTAGG in SQL Server 2025, with explicit order and null rules.

Continue Reading
Jan28

SQL SERVER – Basic Explanation of SET LOCK_TIMEOUT – How to Not Wait on Locked Query

Pinal Dave
SQL Performance
Query Hint, SQL Lock
9 Comments

SET LOCK_TIMEOUT works at the connection level, like the NOWAIT hint does for a query. I show how setting it to 0 stops a query from waiting on a lock.

Continue Reading
Jan27

SQL Server Instance or Database: What Is the Difference?

Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Installation
No Comments

A SQL Server instance is the engine and a database is one set of data inside it. What each level owns, why a login and a user are different objects, and which line to draw when you separate customers or teams.

Continue Reading
Jan26

Piecemeal Restore: Bringing the Primary Filegroup Online First

Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL High Availability, SQL Server
1 Comment

Rehearse a piecemeal restore that brings PRIMARY and current data online first, then restores archive filegroups with the right log chain.

Continue Reading
Jan25

SQL SERVER – Basic Explanation of Query Hint NOWAIT – How to Not Wait on Locked Query

Pinal Dave
SQL Performance
Query Hint, SQL Lock
12 Comments

Everybody knows NOLOCK, but not everyone knows NOWAIT. A question at a Bangalore User Group session led me to explain how NOWAIT skips waiting on a lock.

Continue Reading
Jan24

SQL SERVER – How to Use Instead of Trigger

Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Trigger
21 Comments

Triggers come in two kinds, Instead of and After. Here is how an Instead of Trigger can intercept an insert, update or delete on a table, with an example.

Continue Reading
Jan23

TRIM Function in SQL Server: SQL in Sixty Seconds #040

Pinal Dave
SQL Video
SQL Function, SQL in Sixty Seconds, SQL Server 2017, SQL Server 2022, SQL String
18 Comments

The TRIM function removes spaces from the ends of a string, and SQL Server has had it since 2017. The tests here show which characters TRIM leaves behind, the LEADING and TRAILING keywords, and a WHERE clause that read 884 pages against 3.

Continue Reading
Previous 1 … 503 504 505 506 507 508 509 … 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