Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

If your database is hosted on Azure, follow the Firewall and Credentials steps in Azure SQL Server to allow Erathos to access it and to locate your connection details.

Connecting SQL Server:

  1. Log in to your Erathos account

  2. Select SQL Server as connector

  3. Name your connection

  4. 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.

On AWS RDS, use EXEC msdb.dbo.rds_cdc_enable_db 'your_database'; instead of sys.sp_cdc_enable_db.

The SQL Server Agent must be running, since it runs the jobs that copy changes from the transaction log into the CDC change tables.

On Azure SQL Database there is no SQL Server Agent: CDC changes are captured by a built-in scheduler, and sys.sp_cdc_enable_db requires a member of the db_owner role instead of sysadmin.

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