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
May16

SQL Server Lessons: Five Short Scripts You Can Run in a Minute

Pinal Dave
SQL Tips and Tricks
CTE, Query Hint, SQL Server Security, SQL XML
No Comments

SQL Server lessons stick when you can run them in a minute. This page covers errors, security, XML, hierarchies and query hints. Each lesson asks one question and answers it with a short script. Every result comes from SQL Server 2025.

Continue Reading
May15

SQL SERVER – Get Schema Name from Object ID using OBJECT_SCHEMA_NAME

Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL System Table
11 Comments

Many people join sys.tables and sys.schemas to get a schema name from an object ID. The OBJECT_SCHEMA_NAME function does it in one simple call.

Continue Reading
May14

SQL SERVER – Columnstore Index and sys.dm_db_index_usage_stats

Pinal Dave
SQL Performance
ColumnStore Index, SQL DMV, SQL Index, SQL Scripts, SQL Server
5 Comments

My Columnstore index DMV script failed on SQL Server 2012 RTM because sys.column_store_index_stats was gone. What I found next, with sys.dm_db_index_usage_stats.

Continue Reading
May13

Columnstore Indexes for Reporting Tables

Pinal Dave
SQL Performance
ColumnStore Index, Data Warehousing, SQL Index, SQL Performance, SQL Server
No Comments

Columnstore indexes for reporting tables can cut scan work, but clustered and nonclustered designs affect loading and point lookups differently.

Continue Reading
May12

Filling Template Parameters in SSMS With Ctrl+Shift+M

Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server Management Studio, SQL Shortcut, SQL Variable
No Comments

Template parameters save you from typing one value in four places, but they only paste text. Here is what that means in practice.

Continue Reading
May11

XML modify(): Inserting, Replacing and Deleting Nodes

Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Table Operation, SQL Variable, SQL XML
No Comments

The modify() method edits XML in place, but a path that matches nothing changes nothing and says nothing. Here is how to stay in control.

Continue Reading
May10

Timed-Out Queries in Query Store: Finding Aborted Executions

Pinal Dave
SQL Tips and Tricks
Query Store, SQL DMV, SQL Error Messages, SQL Monitoring
No Comments

An aborted row is a clue, not a verdict. Here is how to read Query Store execution types and match them with what the caller saw.

Continue Reading
Previous 1 … 540 541 542 543 544 545 546 … 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