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 preparation lever is inspected separately from an empty storage bin and prepared tiles.

SQL SERVER 2019 – How to Turn On or Enable Instant File Initialization?

January 6, 2020
Pinal Dave
SQL Performance
SQL Server, SQL Server 2019, SQL Server Configuration

SQL Server 2019 Configuration Manager provides an interface for instant file initialization. My lab also used it with SQL Server 2017.

Read More
A single made-up guest bed facing a long row of sleeping bags in the hall.

Table Variable Deferred Compilation: Before and After SQL Server 2019

January 4, 2020
Pinal Dave
SQL Performance
Execution Plan, SQL Performance, SQL Server 2019, Temp Table

Compare table variable deferred compilation at compatibility levels 140 and 150, then decide when a temporary table gives better estimates.

Read More
Gouache painting of four garden tools hanging on a rail, the second one a vermilion trowel and the others grey and sage

Parameter Sniffing Fixes Compared: Which One to Use

January 1, 2020
Pinal Dave
SQL Performance
Parameter Sniffing, Query Hint, Recompile, SQL Scripts, SQL Stored Procedure

Parameter sniffing fixes compared on one table show a clear order, from a cheap guess to a better index. This post runs the plain procedure, a local variable, OPTIMIZE FOR UNKNOWN, a scoped setting, OPTION (RECOMPILE) and a covering index on the same skewed table, and prints the page reads of each in both call orders.

Read More
Gouache painting of a brass tap with a vermilion wheel feeding a trough that runs past a row of young apple trees

Database Scoped Configuration: Turn Off Parameter Sniffing

December 30, 2019
Pinal Dave
SQL Performance
Parameter Sniffing, SQL Scripts, SQL Server Configuration, SQL Stored Procedure

A database scoped configuration lets you turn off parameter sniffing for one database with a single statement. This post measures a procedure with the setting on and off, shows that the change clears the cached plans of the database, and explains what the switch does not fix.

Read More
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
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
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
Previous 1 … 29 30 31 32 33 34 35 … 127 Next
  • Books
  • Testimonials
  • Privacy Policy

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