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
Gouache painting of a table with wooden pegs joined by thin threads and one vermilion peg at the centre

MATCH Clause in SQL Server Graph Tables: Query Relationships

October 25, 2023
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server 2017, SQL Server 2019

The MATCH clause finds rows in SQL Server graph tables by describing the path between them. The small graph runs one hop, two hops, a shared skill and a SHORTEST_PATH query, compares the plain join, and shows what the MATCH clause does not allow.

Read More
Config values that needs restart.

SQL SERVER – Which Settings Change in sp_configure Needs Restart to Take Effect?

January 1, 2019
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server 2017, SQL Server Configuration, Starting SQL

Which settings changed in sp_configure need a restart to take effect? You do not need to remember them, because a catalog view added in SQL Server 2008 tells you.

Read More
A laden plum tree with a tiny bowl at its foot and a large red crate beside it.

Multi-Statement Table-Valued Functions and Interleaved Execution

November 21, 2018
Pinal Dave
SQL Performance
Execution Plan, SQL Function, SQL Performance, SQL Server 2017

See how interleaved execution corrects estimates for multi-statement table-valued functions and when an inline rewrite wins.

Read More
Result column flipping between 1 and 0.

Puzzle – Datatime to DateTime2 Conversation in SQL Server 2017

November 16, 2018
Pinal Dave
SQL Puzzle
SQL DateTime, SQL Scripts, SQL Server, SQL Server 2017

At PASS, SQL Server expert Christopher Savage showed me a puzzle on DateTime to DateTime2 conversion in SQL Server 2017. I still have no answer, so can you solve it?

Read More
A round-bottomed wooden wobble toy with a red base rocking back upright on a table.

Automatic Plan Correction: Reading SQL Server’s Tuning Advice

March 10, 2018
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL Performance, SQL Server 2017

Read automatic plan correction advice, compare regressed and recommended plans, and verify that forcing the last good plan held.

Read More
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
A long clothesline of washing, fresh sheets at one end and dry ones taken down at the other.

Temporal Table Retention: Cleaning Out Old History Automatically

January 22, 2018
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server 2017, Temporal Table

Set temporal table retention, check history cleanup settings, and choose a history index that lets old versions leave safely.

Read More
1 2 Next
  • Books
  • Testimonials
  • Privacy Policy

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