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 hand holding a tulip bulb, paused above a spot where a shoot already grows in a garden bed.

Loading Only New Rows: INSERT SELECT With NOT EXISTS

December 25, 2019
Pinal Dave
SQL Tips and Tricks
Duplicate Records, SQL Constraint and Keys, SQL Scripts, SQL Server

Make loading only new rows repeatable with NOT EXISTS, EXCEPT, source deduplication, and a unique key that protects the destination.

Read More
A checkered cloth spread on market cobblestones as a makeshift stall, with a short row of lemons and one blood orange.

The VALUES Table Constructor: Using a List as a Table

December 24, 2019
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Server, SQL Table Operation, Temp Table

Use a VALUES table constructor for inline mappings and joins, understand the INSERT row limit, and move larger reusable lists into tables.

Read More
A toast rack on a breakfast table, some slots holding toast and some empty, beside a small jar of marmalade.

How Much Space Does a NULL Take? NULL Storage in Rows

December 23, 2019
Pinal Dave
SQL Tips and Tricks
Compression, SPARSE Columns, SQL Data Storage, SQL NULL, SQL Server

Measure NULL storage in ordinary rows, compare fixed and variable columns, inspect record size, and test sparse and compressed designs.

Read More
Illustrated cover: OPTIMIZE FOR UNKNOWN

SQL SERVER – Parameter Sniffing and OPTIMIZE FOR UNKNOWN

December 21, 2019
Pinal Dave
SQL Tips and Tricks
Parameter Sniffing, SQL Performance, SQL Scripts, SQL Server, SQL Stored Procedure

I consider myself fortunate that I receive a follow-up question from my blog posts. Let’s discuss Parameter Sniffing and OPTIMIZE FOR UNKNOWN.

Read More
Gouache painting of a white cloth covering an unseen lump beside a small wooden box fitted around a pear

Parameter Sniffing Local Variable: What the Trick Fixes

December 20, 2019
Pinal Dave
SQL Tips and Tricks
Parameter Sniffing, SQL Scripts, SQL Statistics, SQL Stored Procedure

The parameter sniffing local variable trick copies a parameter into a variable so SQL Server cannot sniff it. This post measures the estimate and the page reads of a sniffed and a local variable procedure, called in both orders. It shows what the trick fixes, and what it leaves slow.

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
Previous 1 … 63 64 65 66 67 68 69 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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