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
Two glass jars on a garden wall, one empty, one filled with water under a red lid

Comparing Two Wait Stats Snapshots to See What Changed

December 8, 2008
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Performance, SQL Wait Stats

Compare wait stats snapshots over a chosen window, subtract cumulative counters, remove background waits, and calculate rates and average waits.

Read More
A busy restaurant stove with every burner lit and one pot boiling over as a hand reaches for its lid.

Seeing What Is Running Right Now

October 24, 2008
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Lock, SQL Performance, SQL Wait Stats

See what is running right now in SQL Server with request DMVs, statement text, plans, waits, and blocking details in one reusable query.

Read More
An painting shows a branching vine supported by a walnut trellis beside neatly arranged brass clips.

Recursive CTE Performance: Index the Child Lookup

August 25, 2008
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Scripts

Recursive CTE performance depends on finding the next children efficiently. Compare identical rows and actual plans before accepting an index change.

Read More
A small car towing a heavy caravan slowly up a steep country lane

Trigger Overhead: Measuring the Hidden Cost of DML Triggers

July 5, 2008
Pinal Dave
SQL Performance
Execution Plan, SQL Performance, SQL Server, SQL Trigger

Measure trigger overhead with controlled inserts, execution plans, and cached trigger statistics before moving slow work into a queue.

Read More
A library card catalogue drawer pulled open beside a long shelf of books

What Is an Index in SQL Server?

April 28, 2008
Pinal Dave
SQL Performance
Best Practices, SQL Index, SQL Performance, SQL Server

An index in SQL Server took one query from 33,517 reads to 66 on the same table. What clustered and nonclustered really mean, why every index is paid for on the way in, and how to find the ones nobody uses.

Read More
Three blue, sage, and terracotta bowls nested together beside a matching set arranged separately.

SQL SERVER – Converting Subqueries to Joins

April 23, 2008
Pinal Dave
SQL Performance
SQL Joins, SQL Performance, SQL Scripts, SQL Server

Developers often write subqueries where Joins would do, or the other way around. A short note on converting between the two, with links to my earlier examples.

Read More
A damaged clay bowl and its separate fragment sit beside an intact empty bowl

Checking XACT_STATE Before COMMIT or ROLLBACK in a CATCH Block

February 19, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

XACT_STATE separates transaction validity from the decision to retain work. Two isolated examples show a doomed transaction and a committable one, both with deliberate errors. Clean up on the same connection and respect the caller’s transaction ownership.

Read More
Previous 1 … 49 50 51 52 53 54 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com