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
Gouache painting of two garden beds, one seeded and one bare, with a vermilion push seeder

Automatic Seeding in Always On: List and Monitor It

May 14, 2019
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL DMV, SQL High Availability, SQL Scripts

Automatic seeding in Always On lets the primary send a database to a secondary without a manual backup and restore. Three read-only queries show which replicas use it, what happened before and how far a seeding run has come. It also covers why it fails and when to switch it off.

Read More
Gouache painting of a vermilion vintage camera on a tripod beside a print of the hill it points at

Last Known Actual Plan in SQL Server: Query Plan Stats

May 11, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL DMV, SQL Scripts, SQL Server 2019

The last known actual plan is the plan of the most recent run of a cached query, with its real row counts. This post turns the feature on for one database, reads the plan with sys.dm_exec_query_plan_stats and compares estimated rows with actual rows.

Read More
Gouache painting of a clay pot beside the vermilion wooden form it was shaped around

Compiled Parameter Values in SQL Server: Read Them From the Cache

May 7, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL DMV, SQL Stored Procedure

Compiled parameter values show which value SQL Server used when it built a cached plan. This post reads them from the plan cache with one query, then shows how the first caller shapes the plan for everyone after. It ends with the usual ways to break that link.

Read More
A quiet loom still holds unfinished fabric connected to its yarn supply.

SQL SERVER – Reviewing Sleeping Sessions Before Terminating Any Session

May 6, 2019
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL DMV, SQL Monitoring, SQL Scripts, SQL Server

An inactive or sleeping session may still be a useful pooled connection. A customer case prompted my earlier session-cleanup script.

Read More
Freshly painted plates wait on a rack beside a stack of finished plates

Dirty Pages – How to List Dirty Pages From Memory in SQL Server? – Interview Question of the Week #223

May 5, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL DMV, SQL Memory, SQL Scripts, SQL Server

Question: How to List Dirty Pages From Memory in SQL Server? Answer: I received question today during my SQL Server Performance Tuning Practical Workshop.

Read More
Gouache painting of a row of wooden stakes and a crate stack in a meadow with one vermilion stake

MAXDOP Guidelines: Audit CPU and Memory Settings in SQL Server

April 19, 2019
Pinal Dave
SQL Tips and Tricks
MAXDOP, Parallel, SQL CPU, SQL DMV, SQL Memory

MAXDOP guidelines start from the number of CPUs and NUMA nodes on the server. This post builds three read-only queries that show those facts, the current MAXDOP and cost threshold, and the memory settings. It also shows how to read the answer without changing anything.

Read More
Two spirit levels on stone steps, one bubble centered on the new step, one off on the old

Consulting 102 – What Do I Promise in Every Engagement?

March 26, 2019
Pinal Dave
SQL Performance
Comprehensive Database Performance Health Check, Consulting, SQL DMV, SQL Server, SQL Wait Stats

Know what I promise in every engagement, define a useful baseline, and compare performance changes without trusting a speed claim.

Read More
Previous 1 … 12 13 14 15 16 17 18 … 44 Next
  • Books
  • Testimonials
  • Privacy Policy

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