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
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 row of cream parcels each with a small brass bell on top, one parcel wrapped in vermilion

NOCOUNT Performance: What SET NOCOUNT ON Saves in a Loop

December 18, 2019
Pinal Dave
SQL Performance
SQL Cursor, SQL Scripts, SQL Server, SQL Stored Procedure

NOCOUNT performance depends on the messages that SQL Server no longer sends to the client. This post counts the network packets of a procedure with a 5,000 step loop, with the setting off and on. It also explains why some tests show no time gain, and where the setting helps most.

Read More
A hand watering the one dry pot in a row of geraniums on a porch step, the other pots left alone

Skipping No-Op Updates: Changing Only Rows That Really Differ

December 16, 2019
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Scripts, SQL Server, SQL Server 2022, SQL Trigger

Skip no-op updates with NULL-safe EXCEPT or IS DISTINCT FROM, inspect affected counts, and avoid unnecessary rowversion and trigger changes.

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
A local radiator valve adjusts heat for one room

What is the Priority of Database Scoped Configurations? – Interview Question of the Week #254

December 8, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL CPU, SQL Performance, SQL Server, SQL Server Configuration

Question: What is the Priority of Database Scoped Configurations over Global Configuration at Server Level?

Answer: This is a follow-up question.

Read More
Two icebergs cut at the waterline, the smaller-looking one hiding a huge mass below.

Why Query Cost Percentages in a Plan Mislead You

December 5, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Performance, SQL Server

Test why query cost percentages are estimates by comparing two statements with STATISTICS IO, TIME, and query DMV counters.

Read More
Two matching kites on the grass, differing only in their tails, one short and red.

Comparing a Good and a Bad Plan for One Query in Query Store

December 3, 2019
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL Performance, SQL Server

Compare a good and a bad plan in Query Store using runtime history, SSMS Compare Showplan, estimates, joins, grants, and parallelism.

Read More
Previous 1 … 61 62 63 64 65 66 67 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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