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 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 large open moving box on a wooden floor, only partly filled with folded linens, a red roll of tape beside it.

Reclaiming Space Quiz: Does Deleting Rows Shrink the File?

January 29, 2012
Pinal Dave
SQL Puzzle
Shrinking Database, SQL Data Storage, SQL Index, SQL Performance

This Reclaiming Space Quiz asks what happens to the data file after you delete half the rows of a big table. The file keeps its size, and the space stays free inside it. A tested script shows the numbers, then what a shrink costs.

Read More
Two wooden bookshelves side by side, filled with plain books, a red book at the end of one shelf.

Fill Factor Quiz: Is 0 Different from 100?

January 25, 2012
Pinal Dave
SQL Puzzle
Clustered Index, SQL Data Storage, SQL Index, SQL Performance

This Fill Factor Quiz asks whether an index with fill factor 0 leaves more free space than one with 100. It does not: both build full pages. A tested script shows how a fill factor of 70 changes the pages and why it only applies at build time.

Read More
Two hourglasses on a desk by a window, one tied with a red ribbon, beside a loose coil of rope.

Accelerated Database Recovery Quiz: Why Did the Rollback Finish at Once?

January 24, 2012
Pinal Dave
SQL Puzzle
SQL Performance, SQL Server 2019, SQL Transactions, Transaction Log

This Accelerated Database Recovery Quiz asks how long a rollback takes when ADR is on. The answer is almost no time, and a tested script measures the same rollback with ADR off and on. It also shows what ADR costs.

Read More
A half-knitted cream scarf resting on an armchair with its needles, a red ball of yarn beside it ready to continue.

Rebuild Index Quiz: DROP and CREATE, DROP_EXISTING or REBUILD?

January 22, 2012
Pinal Dave
SQL Puzzle
Maintenance Plan, SQL Index, SQL Performance, SQL Table Operation

This Rebuild Index Quiz asks which way of refreshing an index stays usable and can pause and resume. The answer is ALTER INDEX with ONLINE and RESUMABLE turned on. A tested two-window script shows the pause and the resume.

Read More
Previous 1 … 36 37 38 39 40 41 42 … 50 Next
  • Books
  • Testimonials
  • Privacy Policy

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