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
Sep19

Checking Constraints After a Bulk Load With DBCC CHECKCONSTRAINTS

Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Server, SQL Server DBCC
No Comments

Run DBCC CHECKCONSTRAINTS after a controlled bulk-load bypass, inspect violations, and restore enabled trusted CHECK and foreign-key rules.

Continue Reading
Aug24

Log File Not Shrinking: Read log_reuse_wait_desc First

Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Backup and Restore, SQL Server DBCC, Transaction Log
No Comments

A log file not shrinking is explained by one column: log_reuse_wait_desc. A demo database reads LOG_BACKUP and ACTIVE_TRANSACTION from it and shows why the first shrink after a log backup can still fail. A table lists the other reasons with the action for each.

Continue Reading
Aug2

Swap Columns – SQL in Sixty Seconds #199

Pinal Dave
SQL Video
SQL Column, SQL in Sixty Seconds
No Comments

Today we will see a quick video on how to swap columns in SQL Server. It is a widespread request. We will learn that in this video.

Continue Reading
Jul25

Prepared Statements and Plan Reuse From Application Code

Pinal Dave
SQL Performance
Ad Hoc Query, Execution Plan, SQL Cache, SQL Server
No Comments

Inspect prepared statements, handle lifetimes, parameter types, cached Prepared plans, and the limits of optimize for ad hoc workloads.

Continue Reading
Jun28

Heartbeat Gaps: Finding Missing Check-Ins With LAG

Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Monitoring, SQL Scripts, SQL Server
No Comments

Detect missing check-ins with LAG, report closed heartbeat gaps, and find silent or never-seen sources using an explicit UTC tolerance.

Continue Reading
Jun23

Live Plans for Running Queries With sys.dm_exec_query_statistics_xml

Pinal Dave
SQL Performance
Execution Plan, SQL DMV, SQL Server, SQL Wait Stats
No Comments

Read sys.dm_exec_query_statistics_xml for live plans, compare profile counts with estimates, and interpret partial progress carefully.

Continue Reading
Jun21

Writing Agent Job Step Output to a Log File on Disk

Pinal Dave
SQL Tips and Tricks
DBA, SQL Log, SQL Server, SQL Server Agent
No Comments

Preserve job step output in a server-side file, configure Agent tokens and append flags, and verify write permissions and retention.

Continue Reading
Previous 1 … 45 46 47 48 49 50 51 … 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