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 milking pail with two portions of fresh milk added beside a larger retained total

Turning Per-Second Counters Into Real Rates From DMVs

December 13, 2022
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

That per-second counter on your dashboard is probably a running total. Here is how to turn it into a real rate with two samples.

Read More
Two boards overlapping at a woodworking bench dog while another pair just touches

Finding Schedule Clashes: Overlapping Sessions per Attendee

October 26, 2022
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

An attendee says two sessions run at the same time. Here is how to find every overlapping pair once, and why touching is not a clash.

Read More
A truffle shaver making thin slices beside a few thick slices

Query Store Interval Length: Choosing How Fine Your History Is

April 4, 2022
Pinal Dave
SQL Performance
Best Practices, Query Store, SQL Server

An hourly average can hide the slowdown users remember. Here is a small demo of Query Store interval length and how to choose it.

Read More
A lemon squeezer holding a small lemon half beside an oversized half that cannot fit its pressing cup

Will the Next Autogrowth Fit? Checking Growth Against Free Disk

February 9, 2022
Pinal Dave
SQL Tips and Tricks
Best Practices, Disk, SQL Server

The drive has free space, yet the file will not grow. Here is how to calculate the next autogrowth and test it against disk and MAXSIZE.

Read More
A pair of white ice skates on a snowy bench with a loose coil of lace beside them

ZIP Codes Stored as int: Lost Zeros and How to Repair Them

December 10, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Server, SQL Stored Procedure

An int column turns 01234 into 1234 and never gives the zero back. Here is how to fix the column, and how to repair old rows without guessing.

Read More
Gouache painting: three stands at a dairy loading dock

Scalar Subqueries: An Empty Input Produces NULL

December 6, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Scripts, SQL Server

Scalar subqueries contribute one value to an outer row. Keep row absence separate from a present NULL and enforce the at-most-one-row contract.

Read More
A sushi rolling mat shaping ingredients outside their original bowls

sp_execute_external_script: Run Python Inside SQL Server

September 22, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, Python, SQL Server

Before you write any Python, check four switches. Here is how to read them, what error 39023 means, and what to test on your own server.

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

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