Microsoft SQL Server
On This Page
Hevo can load data from any of your pipelines into a Microsoft SQL Server database. In this document, we will walk through the steps to add Microsoft SQL Server as a Destination.
- The database user must have CREATE TABLE, ALTER, SELECT, INSERT, UPDATE and USAGE grants on the database.
Step 1. Add Destination
Do one of the following:
After you configure the Source during Pipeline creation, click ADD DESTINATION.
Step 2. Select Destination Type
In the Add Destination page, select MS SQL Server.
Alternatively, use the Search Destination Type search box to search for the Destination.
Step 3. Configure MS SQL Server Connection Settings
Specify the following settings in the Configure your MS SQL Server Destination page:
- Destination Name: A unique name for this destination.
- Database Host: SQL Server host’s IP address or DNS. To connect to a local database, follow the steps given below.
- Database Port: The port on which your SQL Server is listening for connections (default is 1433).
- Database User: A user with a non-administrative role of the SQL Server database.
- Database Password: Password for the user.
- Database Name: Name of the destination database where data will be dumped.
- Database Schema: Name of the destination database schema (Default = dbo)
Sanitize Table/Column Names?: Enable this option to remove all non-alphanumeric characters, spaces in between the table and column names and replace them with an underscore (_). Read Name Sanitization.
Step 4. Test Connection
After filling the details, click on TEST CONNECTION button to test connectivity to the destination Postgres server.
Step 5. Save Connection
Once the test is successful, save the connection by clicking on SAVE DESTINATION.
Connect to a Local Database
MY-SQL/MS-SQL service is running on your local machine.
You have an account on ngrok and an installed ngrok utility on your local machine. To run ngrok on your local machine, follow these one-time steps:
Extract the ngrok utility:
On Linux or MacOS, unzip ngrok from a terminal:
On Windows, double-click ngrok.zip to extract it.
Authenticate ngrok in your local machine:
./ngrok authtoken <your_auth_token>
You can get the auth token from your ngrok dashboard. For example, in the image below, the auth_token starts with
Connecting to the Local Database
Perform the following steps to connect to the local database:
Log in to your database server.
Start a TCP tunnel forwarding to your database port.
./ngrok tcp <your_database_port>
For example, the port address for MySQL is 3306. Therefore, the command would be:
./ngrok tcp 3306
Copy the public IP address (hostname and port number) for your local database and port. For example, in the image below,
8.tcp.ngrok.iois the database hostname and
19789is the port number.
Paste the hostname and port number into the Database Host and Database Port fields respectively.
Specify all other settings and click TEST & CONTINUE.
- You must disable any foreign keys defined in the target tables. Foreign keys do not allow data to be loaded until the reference table has a corresponding key defined.
- You can replicate data for only 1018 columns in a given MS SQL Server table. Read Limits on the Number of Columns.
Refer to the following table for the list of key updates made to this page:
|Date||Release||Description of Change|
|Jul-26-2021||1.68||Added section, Connect to a Local Database.|
|Jul-12-2021||NA||Updated the section, Destination Considerations.|