SQL Server
Version 24.2.9064
Version 24.2.9064
SQL Server
You can use the SQL Server connector from the CData Sync application to move data from any supported source to the SQL Server destination. To do so, you need to add the connector, authenticate to the connector, and complete your connection.
Add the SQL Server Connector
To enable Sync to use data from SQL Server, 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 SQL Server row.
-
Click the Configure Connection icon at the end of that row to open the New Connection page. If the Configure Connection icon is not available, click the Download Connector icon to install the SQL Server connector. For more information about installing new connectors, see Connections.
Authenticate to SQL Server
After you add the connector, you need to set the required properties.
On the New Connection page, enter the connection name of your choice.
CData Sync supports authenticating to SQL Server in several ways. Select your authentication method below to proceed to the relevant section that contains the authentication details.
SQL Server Authentication
To authenticate with your SQL Server login credentials, specify these settings:
-
User - Enter the username that you use to authenticate to SQL Server.
-
Password - Enter the password that you use to authenticate to SQL Server.
Windows Authentication
The Windows Authentication scheme does not require any additional settings. So, you can select this scheme and continue with the settings and steps in Complete Your Connection.
Complete Your Connection
To complete your connection:
-
Specify the following settings:
-
Server - Enter the host name or IP address of the server that hosts the SQL Server database.
-
Database - Enter the default database to which you want to connect when you connect to SQL Server.
-
-
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.
Data-Type Mapping
CData Sync uses the following data-type conversions when loading data into your SQL Server database:
CData Type | SQL Server Type | Notes |
---|---|---|
Boolean | Bit | |
Date | Date | |
Time | Time | |
TimeStamp | DateTime2 | |
Decimal | Decimal | |
Float | Float | |
Double | Float | |
SmallInt | SmallInt | |
Integer | Int | |
Long | BigInt | |
Binary | VarBinary(<ColumnSize>) | If ColumnSize > 1000, ColumnSize = MAX |
Varchar | Varchar(<ColumnSize>) | If ColumnSize > 4000, ColumnSize = MAX |