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 red horseshoe magnet lifting screws and nails out of a pile of sawdust on a workbench

Pulling Values Out of Text With REGEXP_SUBSTR and REGEXP_INSTR

April 22, 2019
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

Extract codes with REGEXP_SUBSTR in SQL Server 2025, locate matches, select occurrences and capture groups, and validate text boundaries.

Read More
Gouache painting of a balcony with a cracked pot, a fresh pot and a vermilion planter box full of soil

Docker Volume for SQL Server: Keep Your Data Across Upgrades

April 20, 2019
Pinal Dave
SQL Tips and Tricks
Docker, PowerShell, SQL Data Storage, SQL Scripts

A Docker volume keeps SQL Server data outside the container, so you can replace the container and keep every database. This post creates a named volume, copies a backup into it and upgrades by starting a newer image on the same volume. It also covers the cautions that protect your data.

Read More
Gouache painting of a row of wooden stakes and a crate stack in a meadow with one vermilion stake

MAXDOP Guidelines: Audit CPU and Memory Settings in SQL Server

April 19, 2019
Pinal Dave
SQL Tips and Tricks
MAXDOP, Parallel, SQL CPU, SQL DMV, SQL Memory

MAXDOP guidelines start from the number of CPUs and NUMA nodes on the server. This post builds three read-only queries that show those facts, the current MAXDOP and cost threshold, and the memory settings. It also shows how to read the answer without changing anything.

Read More
A row of full fish crates on a quay at dawn, one crate at the end holding only a few fish

Spotting Unusually Small Backups Against Each Database’s Average

April 17, 2019
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Monitoring, SQL Scripts

Flag unusually small backups against database-specific history, use aggregate filtering, and investigate alerts without assuming data loss.

Read More
Three bowls with equal heaps of toffees, one last toffee resting in an open palm above them

Splitting an Amount Across Rows Without Losing a Cent

April 16, 2019
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Datatype, SQL Scripts, SQL Server

Make splitting an amount preserve every cent by checking rounded shares, allocating weighted remainders, and documenting deterministic ties.

Read More
A small bottle jack supporting a large stone slab with its contact points visible

Plan Properties Window: Where the Useful Numbers Hide

April 15, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, Maintenance Plan, SQL Server

The execution plan picture only shows the shape. The properties window shows what really happened, and I walk through it on a tiny example.

Read More
A wire stripper beside a transformed cable section and its removed outer sleeve

Masking Test Data With REGEXP_REPLACE in SQL Server 2025

April 13, 2019
Pinal Dave
SQL Tips and Tricks
Data Visualization, Data Warehousing, Master Data Services, SQL Data Storage

Before a production copy reaches a developer, replace the real emails and phone numbers. Here is a small, checked way to do it with REGEXP_REPLACE.

Read More
Previous 1 … 81 82 83 84 85 86 87 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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