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 hand tying small parcels into equal bundles with vermilion string in a post office loading bay.

BULK INSERT Batch Size and ROWS_PER_BATCH

September 1, 2024
Pinal Dave
SQL Tips and Tricks
Batch, CSV, SQL Log, SQL Server, SQL Transactions

Distinguish ROWS_PER_BATCH estimates from BULK INSERT commit batches, then review logging, locks, rejected rows, and atomic loading.

Read More
A pottery roller leaves patterned impressions in clay tiles, with one tile showing a different gap.

Detecting Changed Rows With a Row Hash

February 29, 2020
Pinal Dave
SQL Tips and Tricks
Batch, ETL, SQL Function, Temp Table

Compare one fingerprint instead of twenty columns. I show a safe HASHBYTES recipe, the NULL trap that fools CONCAT_WS, and a load that touches only the rows that changed.

Read More
A library trolley carrying a small stack of old books toward a basement stairway, a gap left on the shelf.

Archiving Old Rows to a History Table in Small Batches

February 3, 2020
Pinal Dave
SQL Tips and Tricks
Batch, Output Clause, SQL Delete, SQL Server, SQL Transactions

Make archiving old rows atomic with DELETE OUTPUT, preserved source identifiers, bounded batches, reconciliation, and a job time limit.

Read More
A small red boat ferrying a few crates at a time from a big heap on one quay to a pile across the water

Deleting Millions of Rows in Batches Without Filling the Log

August 9, 2016
Pinal Dave
SQL Performance
Batch, SQL Delete, SQL Server, Transaction Log

Plan deleting millions of rows with bounded commits, an indexed cutoff, log reuse checks, and a clear choice of retention method.

Read More
SQL SERVER - Why is My Query Switching to Row Processing and Not Doing Batch Processing?

SQL SERVER – Why is My Query Switching to Row Processing and Not Doing Batch Processing?

January 25, 2016
Pinal Dave
SQL Tips and Tricks
Batch, SQL Extended Events

Why is my query switching to row processing and not doing batch processing? Here is what to check with ColumnStore indexes in SQL Server.

Read More
Multiple .sql files.

SQL SERVER – Combined Multiple .SQL files into One Single File

October 19, 2014
Pinal Dave
SQL Tips and Tricks
Batch

A friend reading on his phone wanted one file instead of 100s of scripts. I combined multiple .SQL files into one single file from the command prompt.

Read More
Gouache painting of a stone water mill with its wheel turning in a steadily flowing stream, and beside it a row of wooden barrels waiting for a cart, one barrel painted vermilion.

Batch vs Stream Processing: When Data Cannot Wait

October 29, 2013
Pinal Dave
SQL Tips and Tricks
Batch, Cloud Computing, Data Warehousing, ETL, Parallel

Batch vs Stream Processing is a choice about how long an answer can wait. This post compares an hourly batch job with a 5-minute stream window on the same six orders, covers the cost of real time and shows how to choose.

Read More
1 2 Next
  • Books
  • Testimonials
  • Privacy Policy

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