Scripts

Technical Article

Real-Time SQL Server to BigQuery Streaming ETL using CDC

CDC Changes: The script queries the CDC tables in SQL Server to retrieve the changes (inserts, updates, deletes) since the last sync. Each change is processed with a mapped operation type (INSERT, UPDATE, DELETE).
Real-Time Streaming to BigQuery: The captured changes are streamed directly to BigQuery using its real-time insert_rows_json method, avoiding the need for batch uploads via Google Cloud Storage.
Tracking Last Sync Time: The script tracks the last synchronization time and updates it after every successful sync, ensuring no data is missed.
Low Latency: By continuously querying the CDC tables and streaming the changes, the script achieves near real-time data synchronization.

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

(1)

You rated this post out of 5. Change rating

2024-11-13 (first published: )

794 reads

Technical Article

Concatenating Multiple Row Values into a Single Comma-Separated List

In scenarios where you need to consolidate multiple rows into a single, comma-separated value, you can achieve this using FOR XML PATH. This script demonstrates how to retrieve volunteer data and display the days they have selected for participation.

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

You rated this post out of 5. Change rating

2024-11-11 (first published: )

1,959 reads

Blogs

Microsoft Ignite Announcements Nov 2026

By

Microsoft shared another large set of announcements at Microsoft Ignite, held November 17–20 in...

Are You Copying Agent Jobs the Right Way?

By

There are two ways to use dbatools to copy SQL Server Agent jobs, but...

What's New in SQL Server for the Developer: SQL Server 2017

By

Part 3 of my What's New in SQL Server for the Developer series. SQL...

Read the latest Blogs

Forums

Alamat Telp BCA KCP Manhattan Telp:0817781222

By Halo_BCA

WhatsApp:0817781222 The Manhattan Square, Mid. Tower, Lt. Ground Unit A & Lt. Mezzanine Unit...

Alamat Telp BCA KCP Tebet Timur Telp:0817781222

By layanan 24jam BCA

WhatsApp:0817781222 Jl. Tebet Timur Dalam Raya Blok GG No. 97, RT.3/RW.6, Tebet Tim., Kec....

How to Store AI Output in SQL Server: A Practical Data Model

By vgupta

Comments posted to this topic are about the item How to Store AI Output...

Visit the forum

Question of the Day

Severe Errors

Which class of errors are automatically written to the error log?

See possible answers