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 huge roasting tray in an open oven holding one small sausage in the middle.

Oversized varchar Columns and Inflated Memory Grants

September 18, 2023
Pinal Dave
SQL Performance
Execution Plan, SQL Datatype, SQL Memory, SQL Performance, SQL Server

Investigate oversized varchar declarations, compare sort memory grants, and narrow string columns safely without losing valid data.

Read More
A tennis ball machine sending every ball to the same spot on a clay court, the marks clustered in one place.

Repeatable Test Data With a Fixed Random Seed

September 15, 2023
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Random, SQL Server, Testing

Generate repeatable test data with a fixed RAND seed or row-number hashes, then verify identical names and amounts across runs.

Read More
brent pinal

SQL SERVER – Performance: OR vs IN – A Summary and Further Reading

September 12, 2023
Pinal Dave
SQL Performance
Clustered Index, Computed Column, SQL Index, SQL Server

The varied responses led me to write a detailed blog post to clarify the correct answer. If you missed it, you can read it here. Let us see A Summary and Further Reading.

Read More
A caulking gun with a stuck cartridge holding up the work at its nozzle

Blocking Alert: A T-SQL Check for Sessions Blocked Too Long

September 6, 2023
Pinal Dave
SQL Tips and Tricks
Best Practices, Comprehensive Database Performance Health Check, SQL Server

Short blocking is normal. This check flags lock waits past a threshold and walks each chain to the session at the front of the line.

Read More
A pear tree trained flat against a brick wall, a finger tracing one branch from the trunk to a single pear.

Materialized Path Hierarchies: Storing the Path as a String

August 28, 2023
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL String, SQL Table Operation

Build a materialized path hierarchy in T-SQL, query descendants, calculate depth, and move a subtree without creating cycles.

Read More
A barnacle colony spreading across a dinghy hull with a finite strip of bare wood remaining

Forecasting the Disk-Full Date From a Daily File Size History

August 9, 2023
Pinal Dave
SQL Tips and Tricks
Disk, File format, SQL Server

Free space today cannot tell you when the drive fills up. Save daily file sizes and let a short query turn the growth into a date.

Read More
The Flight Connection Puzzle

SQL SERVER – The Flight Connection Puzzle

July 31, 2023
Pinal Dave
SQL Puzzle
CTE, SQL Server

Today we are going to see another such puzzle – The Flight Connection Puzzle. This blog post is going to be really fun blog post.

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

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