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 cleared hallway with rugs rolled up against the wall and a wardrobe just brought in.

Disabling Nonclustered Indexes Before a Large Load, Then Rebuilding

December 22, 2012
Pinal Dave
SQL Performance
DBA, ETL, SQL Index, SQL Server

Test disabling nonclustered indexes before a large load, rebuilding them afterward, and measuring total time and log use.

Read More
A combined glass-cutting tool beside separate scoring and breaking tools

MERGE Performance for Large Upserts: UPDATE Then INSERT Instead

December 21, 2012
Pinal Dave
SQL Performance
SQL Performance, SQL Scripts, SQL Server

Is MERGE really slow, or did the rewrite just run on a quiet night? Here is a fair test you can run yourself.

Read More
Chart of three SQL Server backup plans side by side: Full, Full plus Differential, and Full plus Differential plus Transaction Log, with the pros, cons and recovery model of each

Optimal Backup Methods: Full, Differential and Log Plans Compared

December 18, 2012
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Server, Transaction Log

How to pick the optimal backup methods for your server: choose a recovery model first, then compare Full, Differential and Transaction Log backup plans. The chart lists the pros and cons of each.

Read More
A knitted cardigan buttoned neatly, a hand at the hem showing every button is one hole off.

Writing T-SQL With an AI Assistant: What to Check Before You Run It

December 17, 2012
Pinal Dave
SQL Tips and Tricks
AI, Best Practices, SQL Scripts, SQL Server

Review T-SQL from an AI assistant for real columns, safe writes, index access, date boundaries, isolation, and rollback tests.

Read More
A hand holding a bunch of grass stems by a campfire, one short stem with a red tip just drawn out

Picking Random Winners Fairly With NEWID and CRYPT_GEN_RANDOM

December 14, 2012
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Random, SQL Server, SQL Transactions

Pick random winners with NEWID or cryptographic randomness, handle weights and unique entrants, and save a draw with its seed and timestamp.

Read More
Gouache painting of a wooden ticket inspection station checking outer shape and matching slots in two separate stages.

Validate a Date With Regex in SQL Server 2025: Shape Is Not Enough

December 12, 2012
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server, SQL String

To validate a date with regex in SQL Server 2025, pair REGEXP_LIKE with TRY_CONVERT. The tests here show impossible dates that pass a strict pattern, spellings that convert but break the format, and how to enforce both checks with a constraint.

Read More
A ringing brass alarm clock on a bedside table beside a neatly made, empty bed and untouched slippers.

SQL Server Agent Basics

December 10, 2012
Pinal Dave
SQL Tips and Tricks
DBA, SQL Scripts, SQL Server, SQL Server Agent

SQL Server Agent basics covers jobs, steps, schedules, proxies, and history so a first useful job runs with a clear owner and failure path.

Read More
Previous 1 … 278 279 280 281 282 283 284 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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