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 ski boot remains attached to a ski by a closed heel binding beside the open toe release

Computed Column UDFs: Why Every Query on the Table Goes Serial

March 22, 2012
Pinal Dave
SQL Performance
Computed Column, Execution Plan, Parallel, SQL Function

A computed column that calls a scalar function can block parallel plans for queries that never read it. Here is how to spot it and test a fix.

Read More
Marbles tipped from a neat row into a bowl, landing mixed

Why a Clustered Index Does Not Guarantee Order Without ORDER BY

March 19, 2012
Pinal Dave
SQL Tips and Tricks
Clustered Index, Execution Plan, SQL Order By, SQL Server

Explain order without ORDER BY through parallel scans, NOLOCK allocation scans, alternate indexes, shared scans, and the explicit sort fix.

Read More
A saved dressmaking pattern on a hook, fabric and red pins ready on the table

Optimized Plan Forcing: Cutting Compile Time in SQL Server 2022

March 6, 2012
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL Performance, SQL Server 2022

Check optimized plan forcing in SQL Server 2022 through scoped configuration and Query Store replay flags, then compare compile duration.

Read More
A long glass greenhouse divided into sections, with only its red-framed middle door lit from inside.

Table Partitioning Quiz: When Does It Make a Query Faster?

January 31, 2012
Pinal Dave
SQL Puzzle
Execution Plan, SQL Index, SQL Performance, Table Partitioning

This Table Partitioning Quiz asks whether a query for last month runs faster once a sales table is partitioned by month. The answer is only when the filter lets SQL Server skip partitions. A tested script shows the partition count, the reads, and a partition SWITCH.

Read More
A row of closed cloth-bound journals on a shelf, one pale journal leaning forward with a red ribbon bookmark.

Query Store Quiz: Where Is Last Week’s Slow Query?

January 30, 2012
Pinal Dave
SQL Puzzle
Execution Plan, Query Store, SQL Performance, SQL Server 2022

This Query Store Quiz starts with a slow query from last week and a plan cache that restarted empty. The answer is Query Store, which keeps plans and run times inside the database. A tested T-SQL script finds the query, its plan and its duration.

Read More
A plain map spread on a wooden table with a red ribbon marking a new detour route, a brass compass beside it.

Stored Procedure Recompile Quiz: What Forces a New Plan?

January 15, 2012
Pinal Dave
SQL Puzzle
Execution Plan, Parameter Sniffing, Recompile, SQL Stored Procedure

This Stored Procedure Recompile Quiz asks which action makes SQL Server build a new plan for a procedure. The answer is a new index on a table it reads. A tested script uses plan counters to show what reuses the plan and what rebuilds it.

Read More
Rows of filled jam jars on a farmhouse table, one hand twisting on a lid, one jar at a time.

Scalar Functions and Performance

September 2, 2011
Pinal Dave
SQL Performance
Compatibility Level, Execution Plan, SQL Function, SQL Server, SQL Server 2019

Scalar functions can hide row-by-row work in SQL Server; learn when inlining helps, how to inspect eligibility, and when a set-based rewrite wins.

Read More
Previous 1 … 27 28 29 30 31 32 33 … 35 Next
  • Books
  • Testimonials
  • Privacy Policy

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