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 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
Parked cars along a curb seen from above with gaps between them, one wide enough for a car, one too short

Finding Free Time Slots in a Calendar With GENERATE_SERIES

January 12, 2019
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server, SQL Server 2022

Find free time slots with GENERATE_SERIES, exclude overlapping bookings, and merge busy intervals before calculating calendar gaps.

Read More
Milk pouring into a whole row of glass bottles at once from a bar of spouts in a dairy

Tally Table: Replacing WHILE Loops With a Set of Numbers

June 22, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server 2022, SQL String

Use a tally table or GENERATE_SERIES to replace repeated date, character, and missing-number loops with ordered sets of rows.

Read More
A lone walker on a hillside stairway beside a full funicular car climbing the same slope

Parameter Sensitive Plans: Reading Query Variants in Query Store

July 27, 2016
Pinal Dave
SQL Performance
Execution Plan, Parameter Sniffing, Query Store, SQL Server, SQL Server 2022

Inspect query variants and dispatcher plans in Query Store, compare skewed parameter values, and read the boundaries selecting each plan.

Read More
Three raised glasses waiting over a garden table while a fourth is still being filled

CXSYNC_PORT and CXSYNC_CONSUMER Waits in Parallel Queries

December 28, 2014
Pinal Dave
SQL Performance
MAXDOP, Parallel, SQL Server, SQL Server 2022, SQL Wait Stats

Investigate CXSYNC_PORT with session wait deltas, parallel plan exchanges and thread rows before testing a query-level MAXDOP change.

Read More
An open bento box with neat compartments, one holding a row of small rice balls, a red plum on the rice.

JSON_OBJECT and JSON_ARRAY: Building JSON in SQL Server 2022

March 30, 2014
Pinal Dave
SQL Tips and Tricks
JSON, SQL Function, SQL NULL, SQL Server, SQL Server 2022

Build JSON_OBJECT and JSON_ARRAY values in SQL Server 2022, control null handling, nest arrays, and compare rowset and aggregate output.

Read More
Four irons heating beside one small handkerchief on an ironing board, a hand unplugging the spare ones.

DOP Feedback: Letting SQL Server Lower Parallelism by Itself

January 27, 2014
Pinal Dave
SQL Performance
MAXDOP, Parallel, Query Store, SQL Performance, SQL Server 2022

Configure DOP feedback in SQL Server 2022, check Query Store evidence, and compare parallelism changes with your workload and MAXDOP limits.

Read More
Previous 1 2 3 4 5 6 Next
  • Books
  • Testimonials
  • Privacy Policy

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