SQL Server as Target
Fivetran HVR supports integrating changes into SQL Server database. This section describes the configuration requirements for integrating changes (using Integrate and Refresh) into SQL Server location. For the list of supported SQL Server versions, into which HVR can integrate changes, see Integrate changes into location in Capabilities.
HVR uses the following interfaces to write data into an SQL Server location:
- Microsoft ODBC Driver for SQL Server, used to perform Continuous Integrate and Row-wise Refresh.
- SQL Server BCP interface, used for copying data into database tables during Burst Integrate and Bulk Refresh.
Grants for Integrate and Refresh
This section lists the grants/permissions required for integrating changes into SQL Server database.
For simplicity, we have categorized the required permissions into the following two models:
DbOwner
In this permission model, the HVR database User must be made a database owner (db_owner role). Normally, the database objects that HVR sometimes creates will be part of the dbo schema as the replicated tables.
Alternatively, these HVR database objects can be put in a special database schema so that they are not visible to other users. For this, execute the following SQL commands:create schema schemaname; grant control on schema::schemaname to username; alter user username with default_schema=schemaname;
Minimal
In this permission model, the HVR database User does not need to be a database owner. The following SQL commands are needed so that HVR can create its own tables:grant create table to username; create schema schemaname; grant control on schema::schemaname to username; alter user username with default_schema=schemaname;
This permission model cannot be used if action TableProperties is defined with parameter Schema to change tables with a different owner.