Matillion ETL Shared Job

Author: Matillion
Date Posted: Oct 29, 2023
Last Modified: Oct 29, 2023

CDC Microsoft SQL Server

Load change data from a Microsoft SQL Server table with Change Data Capture (CDC) enabled.

In Microsoft SQL Server, Change Data Capture (CDC) can be enabled on a table so that all data changes are captured into a separate change table. Loading this change data into your data warehouse using a Matillion ETL orchestration job is an efficient method to keep your tables up to date with your source SQL Server database.

This download contains two shared jobs that demonstrate how Matillion ETL can use the SQL Server CDC change data.

CDC Microsoft SQL Server

Stage latest changes Parameters

ParameterDescription
hostMSSQL hostname
databaseMSSQL database containing the CDC tables
usernameThe username to use to authenticate with MSSQL
password_manager_entryName of the Project Group Password Manager entry to use to authenticate with MSSQL
capture_instanceThe MSSQL CDC capture instance. This usually has the form [schema]_[table name], e.g. dbo_Accounts
change_typeRetrieve all CDC records since the last update, or the net CDC records. Options are all or net
previous_max_lsnThe maximum LSN value from the previous batch of extracted CDC data. If left blank, all currently available CDC records for the capture instance will be loaded
warehouseSnowflake warehouse to use to load the data
target_databaseSnowflake database to store the target table
target_schemaSnowflake schema containing the target table
target_tableName of the target table in Snowflake

Process latest changes Parameters

ParameterDescription
hostMSSQL hostname
databaseMSSQL database containing the CDC tables
usernameThe username to use to authenticate with MSSQL
password_manager_entryName of the Project Group Password Manager entry to use to authenticate with MSSQL
capture_instanceThe MSSQL CDC capture instance. This usually has the form [schema]_[table name], e.g. dbo_Accounts
warehouseSnowflake warehouse to use to load the data
target_databaseSnowflake database to store the target table
target_schemaSnowflake schema containing the target table
target_tableName of the target table in Snowflake

Prerequisites

A SQL Server source database table with Change Data Capture enabled.


Downloads

Licensed under: Matillion Free Subscription License

Installation Instructions

How to Install a Matillion ETL Shared Job