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: Identity Jumps by 1000

SQL SERVER – Identity Jumping 1000 – IDENTITY_CACHE

January 24, 2018
Pinal Dave
SQL Performance
SQL Identity, SQL Scripts, SQL Server, SQL Server 2017

Has your identity column ever jumped by 1000 after a restart? SQL Server 2017 fixes it with IDENTITY_CACHE. Here is a demo with the setting ON and OFF.

Read More
Performance observation of TRIM function.

SQL SERVER – Performance Observation of TRIM Function

January 17, 2018
Pinal Dave
SQL Performance
SQL Function, SQL Scripts, SQL Server

Does the new TRIM function slow your queries like other functions in a WHERE clause do? Here is my performance observation of TRIM function in SQL Server 2017.

Read More
A stack of bamboo steamer baskets with one tier lifted out and steaming beside it.

Partition Elimination: Proving a Query Reads Only What It Needs

November 24, 2017
Pinal Dave
SQL Performance
Execution Plan, SQL Performance, SQL Server, Table Partitioning

Prove partition elimination with the actual plan, test date predicates, and use $PARTITION to check which slice SQL Server targets.

Read More
Gouache painting of an antique sewing machine beside two spools whose threads form a tight vermilion knot

NOLOCK Without WITH: Table Hint or Table Alias?

October 24, 2017
Pinal Dave
SQL Performance
Compatibility Level, Query Hint, SQL Lock, SQL Scripts

NOLOCK without WITH and without parentheses is not a hint, because SQL Server reads it as a table alias. This post proves it with a lock test, shows why the compatibility level doesn’t change it, and gives a query that finds the bad syntax in your code. It ends with the safer ways to write the hint.

Read More
Gouache painting of a leaning stack of paper cups beside a tray holding one vermilion mug

Optimize for Ad Hoc Workloads: When to Turn It On

October 20, 2017
Pinal Dave
SQL Performance
Ad Hoc Query, Execution Plan, SQL Cache, SQL Memory

Optimize for Ad Hoc Workloads shrinks the memory that one-time queries take in the plan cache. This post builds a demo of single-use plans, measures their share of the cache, and shows how to read the result. It also covers the cost of the setting and why parameterized queries are the better fix.

Read More
A steamy bathroom mirror with a fading fingertip leaf sketch, a red towel on the rail.

How Readable Secondary Replicas Build Their Own Statistics

October 7, 2017
Pinal Dave
SQL Performance
AlwaysOn, SQL High Availability, SQL Server, SQL Statistics

Learn why readable secondary replicas create temporary statistics in tempdb, how to find them, and when the primary needs a permanent statistic.

Read More
A terraced vineyard on a hillside, flat steps of different widths roughly following the slope

Querying a Histogram With sys.dm_db_stats_histogram Instead of DBCC

September 27, 2017
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Server, SQL Statistics

Query sys.dm_db_stats_histogram to inspect statistics steps, compare stored estimates with data, and identify values beyond the last step.

Read More
Previous 1 … 50 51 52 53 54 55 56 … 127 Next
  • Books
  • Testimonials
  • Privacy Policy

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