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
Jan27

Gaps and Islands: Finding Missing Ranges in a Sequence

Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL DateTime, SQL Scripts, SQL Server
No Comments

Solve gaps and islands with LEAD, ROW_NUMBER, and GENERATE_SERIES, then apply the same date patterns to missing days and login streaks.

Continue Reading
Jan27

SQL SERVER – Error: Fix: Msg 5133, Level 16, State 1, Line 2 Directory lookup for the file failed with the operating system error 2(The system cannot find the file specified.) – Part 2

Pinal Dave
SQL Tips and Tricks
SQL Error Messages
8 Comments

A reader got error message 5133, Directory lookup for the file failed, while running a plain CREATE DATABASE with no path. Here is what caused it.

Continue Reading
Jan26

Insufficient System Memory: Msg 701 in a Resource Pool

Pinal Dave
SQL Tips and Tricks
In-Memory OLTP, Resource Governor, SQL Error Messages, SQL Memory, SQL Scripts
No Comments

Msg 701 reports insufficient system memory in a resource pool. This post reproduces it safely with a memory-optimized table on SQL Server 2025, shows the second message you get when the rows fill the pool, and lists the fixes that worked.

Continue Reading
Jan25

Interview Question of the Week #004 – List All Columns and Their Data Type for a View

Pinal Dave
SQL Interview Questions and Answers
SQL Scripts
3 Comments

Inspect a view’s columns and their data type with SQL Server catalogs, result-set metadata, and checks for stale view definitions.

Continue Reading
Jan24

Bind Resource Governor to a Memory-Optimized Database

Pinal Dave
SQL Tips and Tricks
In-Memory OLTP, Resource Governor, SQL Memory, SQL Scripts
1 Comment

To bind Resource Governor to a memory-optimized database, you create a pool, bind it with one stored procedure and restart the database. This post runs each step on SQL Server 2025, proves the binding with the pool memory, and restores the server.

Continue Reading
Jan23

SQL SERVER – Who is Consuming my TempDB Now?

Pinal Dave
SQL Tips and Tricks
SQL TempDB
28 Comments

Temp tables, cursors, sorts and row versioning all use TempDB. Here is the script I use to find who is consuming my TempDB right now.

Continue Reading
Jan22

SQL SERVER – The DBA goes to MARS – Maintenance, Architecture, Research and Support – Notes from the Field #063

Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Server Security
2 Comments

Stuart Ainsworth tells a captivating story on why the DBA goes to MARS: Maintenance, Architecture, Research and Support, the proactive side of the job.

Continue Reading
Previous 1 … 393 394 395 396 397 398 399 … 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