Azure SQL Database
Version 26.2.9623
Version 26.2.9623
Azure SQL Database
You can use the Azure SQL Database connector from the CData Sync application to move data from any supported source to the Azure SQL Database destination. To do so, you need to add the connector, authenticate to the connector, and complete your connection.
Add the Azure SQL Database Connector
To enable Sync to use data from Azure SQL Database, you first must add the connector, as follows:
-
Open the Connections page of the Sync dashboard.
-
Click Add Connection to open the Select Connectors page.
-
Click the Destinations tab and locate the Azure SQL Database row.
-
Click the Configure Connection icon at the end of that row to open the New Connection page. This action opens the Add Connection dialog box.
Note: If the Configure Connection icon is not available, click the Download Connector icon to install the Azure SQL Database connector.
-
Enter a name for your connection in the Add Connection dialog box.
-
Click Add to open the Settings tab for your connector.
For more information about installing new connectors, see Connections.
Authenticate to Azure SQL Database
After you add the connector, you need to set the required properties.
-
Server: Enter the name of the data source to which you want to connect.
-
Port: Enter the port number for the Azure SQL Database. The default port value is 1433.
-
Database: Enter the name of the intial catalog or database in your data source.
CData Sync supports authenticating to Azure SQL Database in several ways. Select your authentication method below to proceed to the relevant section that contains the authentication details.
- SQL Password (default)
- Active Directory Service Principal
- Active Directory Password
- Active Directory Managed Service Identity
SQL Password
To connect with your SQL password, specify the following properties:
-
Auth Scheme: Select SqlPassword.
-
User: Enter the username that you use to authenticate to Azure SQL Database.
-
Password: Enter the password that you use to authenticate to Azure SQL Database.
Active Directory Service Principal
To connect with an Active Directory service principal, set the following properties:
-
Auth Scheme: Select ActiveDirectoryServicePrincipal.
-
Principal Id: Enter your principal identifier (Id).
-
Principal Secret: Enter your principal secret.
Active Directory Password
To connect with an Active Directory password, set the following properties:
-
Auth Scheme: Select ActiveDirectoryPassword.
-
User: Enter the username that you use to authenticate to Azure SQL Database.
-
Password: Enter the password that you use to authenticate to Azure SQL Database.
Active Directory Managed Service Identity
To leverage the Active Directory Managed Service Identity (MSI) when CData Sync is running on an Azure virtual machine, select ActiveDirectoryMSI for Auth Scheme. No additional properties are required.
Complete Your Connection
To complete your connection:
-
Specify the following properties:
-
Trust Server Certificate: Select whether you want to trust the server certificate. By default, the Enable checkbox is already selected.
-
Encrypt: Select whether you want to encrypt the database. By default, the Enable checkbox is not selected.
-
-
Define advanced connection settings on the Advanced tab. (In most cases, though, you should not need these settings.)
-
Click Create & Test to create your connection.
Note: The Java version requires the Microsoft SQL Server JDBC driver. You can download the driver from the Microsoft Download Center.
Copy the JDBC driver into the libs directory and restart the server.
-
Microsoft Windows:
C:\ProgramData\CData\sync\libs -
UNIX or Mac OS X:
~/cdata/sync/libs