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 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
A long wooden fence across a meadow with one red post marking the boundary between two fields.

Date Functions Quiz: What Does DATEDIFF Count?

January 28, 2012
Pinal Dave
SQL Puzzle
SQL Datatype, SQL DateTime, SQL Function

This Date Functions Quiz asks what DATEDIFF returns for two dates one day apart, when the unit is year. The answer is 1, because DATEDIFF counts boundaries crossed. A tested script shows an age calculation that works, plus DATETRUNC and EOMONTH.

Read More
A soap bubble floating above a small red bubble wand on a table by a window.

Common Table Expressions Quiz: Why Did My Second Query Fail?

January 27, 2012
Pinal Dave
SQL Puzzle
CTE, SQL Coding Standards, SQL Error Messages

This Common Table Expressions Quiz defines one CTE, reads it once, and then reads it again. The answer is error 208, because a CTE lives for one statement only. A tested script shows the error, the missing semicolon trap and the recursion limit.

Read More
SQLAuthority News - Interview with Book Authors after 2 Months of Book Released

SQLAuthority News – Interview with Book Authors after 2 Months of Book Released

January 26, 2012
Pinal Dave
SQL Interview Questions and Answers
SQLAuthority Book Review

Sanjay Shetty and Raj Chaudhuri of INETA APAC did an interview with book authors Vinod Kumar and me, two months after our interview book came out.

Read More
A garden entrance with a red bar closed across it between two stone posts, a path continuing beyond.

Policy Based Management Quiz: Which Mode Can Stop a Change?

January 26, 2012
Pinal Dave
SQL Puzzle
Best Practices, Policy Management, SQL Coding Standards, SQL Server Configuration

This Policy Based Management Quiz asks which evaluation mode can stop a bad change before it is saved. The answer is On change: prevent. A tested T-SQL script blocks a badly named table and shows how few facets support that mode.

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
Previous 1 … 553 554 555 556 557 558 559 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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