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
Gouache painting of a small reservoir fed three ways: a steady stream from a hillside, a slow pipe on the left, and a wooden cart of barrels with vermilion wheels waiting at the edge.

Data Ingestion: Batch Loads, Change Data Capture and Streams

October 23, 2013
Pinal Dave
SQL Tips and Tricks
Batch, Change Data Capture, Data Warehousing, ETL, Transaction Log

Data Ingestion is how data moves from the systems that create it into the platform that analyzes it. This post compares batch loads, change data capture and event streams, and shows the captured rows from a small SQL Server table.

Read More
Gouache painting of a three-stage water filtration stand on a workbench, with muddy water in the top tank, cloudier water in the middle tank, and clear water in a glass jar at the bottom, joined by short pipes and a vermilion valve on the last one.

Big Data Architecture Today: The Lakehouse and Medallion Layers

October 4, 2013
Pinal Dave
SQL Tips and Tricks
Batch, Change Data Capture, Cloud Computing, Data Warehousing, ETL

Big Data Architecture today is a pipeline with four jobs: ingest, store, process and serve, with governance underneath. This post explains the lakehouse, the bronze, silver and gold layers, batch and streaming, and where SQL Server 2025 fits.

Read More
Three wooden wagons waiting on a country road at a level crossing, a striped barrier arm lowered in front of them.

Running SQL Code: Execute, Batches and GO in SSMS

August 7, 2013
Pinal Dave
SQL Tips and Tricks
Batch, Database, SQL Scripts, SQL Server Management Studio

Running SQL code in SSMS starts with F5 or the Execute button. This post covers running only a selection, what a batch is, why GO is not T-SQL, why variables disappear after GO, and how GO with a number repeats a batch.

Read More
A checkout belt with three groups of groceries split by red divider bars

GO Is Not T-SQL: Batches, Variable Scope and GO With a Count

May 11, 2013
Pinal Dave
SQL Tips and Tricks
Batch, SQL Scripts, SQL Server, sqlcmd

Learn why GO is not T-SQL, how batches reset variable scope, what GO 3 repeats, and how applications should send scripts safely.

Read More
A planting dibber continues a row of holes beyond a bare rocky patch in a garden bed.

Updating a Large Table in Batches With a Moving Key Range

December 11, 2008
Pinal Dave
SQL Performance
Batch, Clustered Index, SQL Transactions, Transaction Log

Walk the clustered key a slice at a time, log each batch, and learn why stopping at the first empty batch quietly leaves rows behind.

Read More
Uneven cheese portions balance equally because the wider piece contains large holes.

Splitting a Big Table Into Equal Key Ranges for Batch Work

July 21, 2008
Pinal Dave
SQL Performance
Batch, Ranking Functions, SQL Paging, Temp Table

Equal-width key ranges fail when ids have gaps. NTILE cuts by row count instead, so every worker gets a fair share of the table.

Read More
A harbor crane lifting a cargo net full of sacks onto a boat, with one sack waiting alone on the quay

Fast Bulk Inserts From Python

August 3, 2007
Pinal Dave
SQL Performance
Batch, Python, SQL Performance, SQL Server

Bulk inserts from Python work best with parameterized executemany, measured batch sizes, a tested fast_executemany path, and clear restart rules.

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

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