SQL Server
Find out how to connect SQL Server to your data warehouse effortlessly.
In this page you will learn how to connect SQL Server to Erathos to move your data seamlessly.
The available connections between databases and the Erathos platform are through Open Connection, Static IP and SSH tunnel.
Connecting SQL Server:
Log in to your Erathos account
Select SQL Server as connector
Name your connection
Fill in the form with the required information: db_host, db_port, db_name, db_username and db_password
On the Advanced Connection Settings, you can optionally activate connecting through a SSH tunnel by filling in the fields ssh_host, ssh_keepalive_interval, ssh_password, ssh_port, and ssh_user.
When using CDC, the following values may be used in cdc_snapshot_mode:
initial: performs an initial snapshot, after it completes, streaming following changes from the CDC change tables.
no_data: does not perform any snapshot, only streams changes that are currently available in the CDC change tables.
Don't forget to click on Save and close to advance to the next steps of the integration.
With this connection created you can seemlessly move your SQL Server data to your BigQuery, Redshift or Postgres data-warehouse.
CDC setup
In order to enable CDC in your SQL Server connection you need to confirm the following settings in your database.
CDC must be enabled on the database. Enabling it requires a member of the sysadmin role.
The SQL Server Agent must be running, since it runs the jobs that copy changes from the transaction log into the CDC change tables.
CDC must also be enabled on every table you want to stream. Tables without CDC enabled will not produce any change events.
The user used for the connection must be able to read the captured tables and the cdc schema. If you set a @role_name when enabling CDC on a table, the user must also be a member of that role.
Schema changes
SQL Server CDC does not pick up columns added to a table after CDC was enabled on it. After altering a captured table, create a new capture instance so the new columns are streamed, then disable the old one once the connection has moved past it.
Last updated

