SQL Server

Last updated on May 23, 2025

Hevo can load data from any of your Pipelines into a SQL Server database.


Destination Considerations

  • 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 SQL Server table. Read Limits on the Number of Columns.

  • By default, SQL Server uses case-insensitive collation, which means table names such as Test and test are treated as identical.

    If you have enabled the Sanitize Table/Column Names option while configuring the Destination, Hevo converts all table names to lowercase. This can cause auto-mapping failures if Source contains multiple objects that differ only by case, or if a similarly named table already exists in the Destination. In such cases, Test and test are treated as identical and mapped to the same test Destination table, causing data mismatch.

    Even if name sanitization is disabled, SQL Server may still reject the creation of tables with names that differ only by casing, due to its default collation settings. As a best practice, avoid using Source table names that differ only by case when using SQL Server Destination.


Revision History

Refer to the following table for the list of key updates made to this page:

Date Release Description of Change
May-23-2025 NA Updated section, Destination Considerations to add information about Auto Mapping failing due to case insensitive table names.
Oct-03-2023 NA Added a step to run the commands in the Create an SQL login with sysadmin privileges section.
Apr-25-2023 2.12 Updated section, Configure your SQL Server Connection Settings to add information that you must specify all fields to create a Pipeline.
Mar-10-2023 NA Added the privileges table in the section, Grant privileges to the database user to explain the privileges required by Hevo.
Dec-07-2022 2.03 - Added sections, Set up an SQL Server Instance, Allow Access to the SQL Server Instance, and Create a Database in the SQL Server Instance to help set up a SQL Server Destination.
- Modified the sections, Create a Database User and Grant Privileges and Configure your SQL Server Connection Settings to add more clarity.
Sep-07-2022 NA - Updated the Prerequisites section and added the Create a Database User and Grant Privileges section.
- Updated the Configure your SQL Server Connection Settings to add a link to the Connecting to a Local Database page.
- Deleted the Connect to a Local Database section.
Jul-26-2021 1.68 Added section, Connect to a Local Database.
Jul-12-2021 NA Updated the section, Destination Considerations.

Tell us what went wrong