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 scale model of a house on a table with the real house visible through the window behind it

Test Data That Looks Like Production

July 22, 2015
Pinal Dave
SQL Tips and Tricks
DBA, SQL Sample Database, SQL Server Security, Testing

Test data that looks like production matches distributions, relationships, and volume without copying sensitive values into development.

Read More
An old chair with one new leg being glued in, held by a red clamp

Refactoring Old T-SQL One Procedure at a Time

January 1, 2015
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Server, SQL Stored Procedure, Testing

Begin refactoring old T-SQL with one procedure, repeatable inputs, duplicate-aware result checks, measured reads, and a simple change log.

Read More
A cork puller beside two evenly sealed bottles and one raised tilted cork

Assertion Queries: Data Checks That Should Return Zero Rows

March 22, 2014
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Sub Query, Testing

Let a short query find the order with no lines before a customer does. A small demo shows the failing keys, constraint error 547 and a clean repair.

Read More
Matching brass iris rings have wide and narrow openings with different light patches behind them

Case-Insensitive and Multiline Regex Flags in SQL Server 2025

January 24, 2014
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL String, Testing

Your pattern passed the test string and then missed rows in the table. The flags and the line endings are the usual reason.

Read More
A hand drops red pigment into a small test jar of cream paint beside a large closed paint can.

Trying New SQL Server Features Without Risk

June 30, 2013
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Server, SQL Upgrade, Testing, Virtualization

Trying New SQL Server Features safely takes a separate instance, a controlled data copy, and before and after measurements.

Read More
A model ship floats in a long indoor water tank as small waves roll toward it from the far end.

Keeping a Patch Test Environment Honest

September 23, 2012
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Patch, SQL Server, SQL Server Configuration, Testing

A Patch Test Environment must match production data, settings, jobs, and versions closely enough to reveal real patch risks.

Read More
A croquet mallet rests beside identical balls on the same flat strip of lawn

A Repeatable Workload: Testing a Tuning Change Fairly

June 7, 2012
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Monitoring, SQL Performance, Testing

One quick run can fool you. Here is a small, fixed test you can rerun before and after any index.

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

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