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
Script to get compiled plan with parameters from cache.

SQL SERVER – Script to Get Compiled Plan with Parameters From Cache

May 7, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL DMV, SQL Scripts, SQL Server, SQL Server Management Studio, SQL Stored Procedure

A script I use in every Health Check: get the compiled plan with parameters from cache, so you can see what values the plan was built for.

Read More
A fern frond pressed under glass on sun-print paper, its exact pale outline captured on the blue sheet.

Capturing Actual Execution Plans From a Script With SET STATISTICS XML

May 1, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Scripts, SQL Server, SQL XML

Capture actual plans with SET STATISTICS XML, save the extra result safely, inspect runtime fields, and compare last-known plan statistics.

Read More
Several hands raising wine glasses over a dinner table, clinking every glass against each of the others.

Many-to-Many Merge Join and the Worktable in STATISTICS IO

April 18, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Joins, SQL Performance, SQL Server

Diagnose a many-to-many merge join and its worktable, verify true uniqueness, and compare join choices without changing legitimate matches.

Read More
An empty theatre stage is prepared for a performance that has not begun

How to Compile Queries and Not Execute Them? – Interview Question of the Week #219

April 7, 2019
Pinal Dave
SQL Interview Questions and Answers
Execution Plan, SQL Scripts, SQL Server

How do you compile queries and not execute them? SET NOEXEC ON validates the syntax without running the statement, as this simple SSMS example shows.

Read More
A finger nudging one carved bird on a hanging wooden mobile, making every other bird swing.

Wide Update Plans: What Every Extra Index Costs a Write

March 22, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Performance, SQL Server

Inspect wide update plans, compare index-maintenance work with narrow updates, and read per-index counters without misreading STATISTICS IO.

Read More
List query plan, cache size, text and execution count.

SQL SERVER – List Query Plan, Cache Size, Text and Execution Count

March 16, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Cache, SQL Scripts, SQL Server

A workshop attendee asked how to see the query plan, cache size, text and execution count for queries. This simple query lists all of them from the plan cache.

Read More
The morning catch sorted into shallow crates on ice on a harbor quay, a hand lifting one fish from a crate.

Eager Index Spool: When the Plan Builds Its Own Index

February 23, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Performance, SQL Server

Investigate an eager index spool, read seek keys and output, and compare a supporting index with the cost of rebuilding temporary storage.

Read More
Previous 1 … 14 15 16 17 18 19 20 … 30 Next
  • Books
  • Testimonials
  • Privacy Policy

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