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 silt core sampler showing a short retained column of layered sediment

Reading the Connectivity Ring Buffer for Dropped Connections

August 19, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

The error log says nothing, but the connectivity ring buffer may remember. Here is how to read it and what it cannot tell you.

Read More
A rag rug with broad repeated-color bands and distinct color transitions

Status Changes Only: Collapsing Repeated Rows With LAG

July 30, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

Hundreds of repeated readings, three real changes. Here is how LAG finds them, and why a plain not-equal test quietly drops rows.

Read More
A chain link remover replacing a central connector without discarding attached links

Self-Referencing Foreign Keys: Managers, Employees and Deletes

July 19, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Constraint and Keys, SQL Server

Delete a manager and SQL Server says no, which is good. See how to reassign reports safely and how to catch loops the foreign key allows.

Read More
A rope splicing fid separating paired strands before joining a single strand

Line Endings: CHAR(13), CHAR(10) and Files From Other Systems

April 21, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, Command Line, SQL Server

Why does a value that looks perfect fail a compare? Because of a line ending you cannot see. Five small demos make it visible.

Read More
Mixed wooden pieces in one shallow bowl beside three small bowls containing sorted matching pieces.

Normalisation in Plain Words, and When to Stop

February 24, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Understand normalisation through one order example, then decide when a reporting copy is worth the cost of keeping duplicated data consistent.

Read More
Gouache painting of a water wheel at a stream mill with a single vermilion bucket among gray ones

WHILE 1 = 1 Loop in T-SQL: Run Forever, Stop Safely

November 30, 2020
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Scripts, SQL Server

A WHILE 1 = 1 loop never ends on its own, so every one needs a planned exit. This post builds a once-a-second sampler with three ways out, a stop flag, a round limit and a time limit, then shows how to stop a loop from a second window and what the recursion limit does.

Read More
Gouache painting of two pottery benches, one cluttered with kept clay scraps and one swept clean beside a vermilion bucket

Recovery Model Insert Test: FULL vs SIMPLE Under Load

May 4, 2020
Pinal Dave
SQL Performance
Best Practices, SQL Backup and Restore, SQL Log, SQL Wait Stats, Testing

A recovery model insert test compares FULL and SIMPLE under a load of 16 connections. The log written is almost the same in both, and the elapsed time depends more on the server than on the model. The real difference is when the log can be reused, and this post shows that step by step.

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

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