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

Integrating with Azure SQL Server

Drivetrain connects to your Azure SQL database directly using TLS, with a database user you create for Drivetrain. This guide covers the detailed steps for the integration process.

Prerequisites

Azure SQL Server Guide Authentication Enable Access Create User Grant User Permissions Connect in Drivetrain

What syncs

Prerequisites

To connect Azure SQL Server to Drivetrain, you need:

  • Admin access in Drivetrain

  • SQL Server version 2012 or above

  • An Azure account with a DB Owner, SQL Server Contributor, or SQL Security Manager role

  • ALTER ANY USER permissions in your database server

  • Your server name, for example yourserver.database.windows.net. Use the name, not an IP address: Drivetrain checks that the server's TLS certificate matches the name you enter.

  • Your database's port (usually 1433)

IMPORTANT: We do not support single-user mode.

Azure SQL Server Guide

Step 1: Authentication

Drivetrain authenticates with a SQL username and password. You'll create this user in Step 3.

If your database only accepts Microsoft Entra ID sign-in, Drivetrain can connect with an Entra ID service principal (client ID, client secret and tenant ID) instead. Ask your customer success manager to set this up.

Step 2: Enable Access

  1. Log in to the Azure console.

  2. On the Azure main page, select SQL databases.

  3. Click on the SQL database that you want to connect to Drivetrain.

  1. On the database overview page, find the server name and make a note of it in a secure document.

  1. Click Set server firewall. This opens the server's Networking page.

  2. Set Public network access to Selected networks, then add a new firewall rule with a name as “Drivetrain Integration”. Allow Drivetrain's IP addresses, which your customer success manager can share with you. Click on Save

Note: Drivetrain connects to Azure directly over TLS. Follow Azure's TLS setup instructions if you need to change your server's TLS settings.

Step 3: Create User

Create a database user for Drivetrain's exclusive use.

  1. Open a connection to your Azure SQL database.

  2. Add a container database user for Drivetrain by running the following command. Replace <database> with the name of your database, <username> with the username of your choice, and <password> with a password of your choice:

Note the username and password in the same secure document.

Step 4: Grant User Permissions

  1. Once you have created user for Drivetrain, grant it SELECT permissions for the database, schemas, tables or specific columns you want to sync. Below are sample snippets for every type of access:

  2. To sync views, grant SELECT on them the same way. Drivetrain lists both tables and views.

Step 5: Connect in Drivetrain

That’s it. Now connect the database in Drivetrain:

  1. Go to Data in the left navigation, click the + button and select Microsoft Azure SQL Database.

  2. Click Request access, enter the Host (your server name, for example yourserver.database.windows.net), Port, Database, and the Username and Password of the user you created in Step 3, and click Submit credentials. Drivetrain then completes the connection for you. If a connection form opens straight away instead, enter the same details and click Submit.

  3. Once the connection is set up, open it and click Add data to choose the tables to sync. No data syncs until you select tables.

What syncs

Each sync reads the selected tables and views in full and replaces the copy in Drivetrain. You don't need to turn on change tracking. For large tables, Drivetrain can instead re-read only recent rows, based on a date column. Ask your customer success manager.

To change the password later, contact Drivetrain support.

Last updated

Was this helpful?