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
A pot of rice cooking under a clear glass lid, grains visible through the mist, a spoon resting untouched beside it.

Lightweight Query Profiling: Live Progress Without the Old Overhead

December 27, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL DMV, SQL Monitoring, SQL Server, SQL Server 2019

Use lightweight query profiling to inspect live operator rows and in-flight plans, while avoiding misleading progress percentages.

Read More
Illustrated cover: Parameter Sniffing

SQL SERVER – Parameter Sniffing Simplest Example

December 19, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, Parameter Sniffing, SQL Scripts, SQL Server, SQL Stored Procedure

Today we will see a very simple example of the Parameter Sniffing. Let us see a very simple example of the parameter sniffing.

Read More
Gouache painting of a wooden birdhouse with a vermilion roof, a feather and twigs at its doorway, on a wooden bench

Copy Database Without Statistics and Query Store Data

December 17, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, Query Store, SQL Scripts, SQL Server DBCC, SQL Statistics

To copy database without statistics, add NO_STATISTICS and NO_QUERYSTORE to DBCC CLONEDATABASE. This post shows why that matters, because histograms and Query Store texts hold real values. It also shows the plan estimate that changes, how to make a clone writable, and what VERIFY_CLONEDB does.

Read More
Gouache painting of a cream vase with sage branches beside a smaller empty cream vase with a vermilion rim

Clone Database in SQL Server With DBCC CLONEDATABASE

December 16, 2019
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL Scripts, SQL Server DBCC, SQL Statistics

Clone Database in SQL Server with DBCC CLONEDATABASE and you copy the structure and the statistics without a single row. This post runs the command on a demo database, checks what the clone holds and what it leaves out, and shows that the optimizer builds the same plan from the copied statistics.

Read More
The actual collection of towels is larger than the small hamper suggested

Why Execution Plan Operator Read More Rows Than Available? – Interview Question of the Week #255

December 15, 2019
Pinal Dave
SQL Interview Questions and Answers
Execution Plan, SQL Performance, SQL Scripts, SQL Server

Question: Why Execution Plan Operator Read More Rows Than Available?

Answer: Statistics.

Now let us learn detailed answer in this blog post.

Read More
Gouache painting of a small blue locomotive on a straight track beside a lamp post with a vermilion lever

Query Plan Join: Why a Query With No Join Shows One

December 14, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Joins, SQL Scripts

A query plan join can appear even when the query has no join, because SQL Server joins a nonclustered index to the table itself. This post reads the plan of a one table query, removes the join with a covering index, and finds the row count where SQL Server stops using lookups.

Read More
Gouache painting of two wooden chutes, one with a single vermilion marble at the bottom and one with a row of grey marbles

Row Mode Memory Grant Feedback: It Needs Level 150

December 9, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Memory, SQL Scripts

Row mode memory grant feedback needs compatibility level 150 or higher, while batch mode needs only 140. A tested demo runs a row mode sort and a batch mode sort at levels 140, 150 and 170. The row sort keeps its grant of 11,888 KB at level 140 and drops to 1,536 KB at 150.

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

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