Skip to content

Other drivers and Azure SQL Database connections

SQDR bundled SQL Server driver

The SQDR bundled SQL Server driver is installed and licensed with SQDR: there's nothing to install. In the destination's Connection, choose it and its SQL Server template, and fill in HostName (host\instance). The template sets EnableQuotedIdentifiers=1, which SQDR requires. This driver has no bulk copy: choose Insert using ODBC in the subscriptions to this destination (their Baseline Replication Options).

Azure SQL Database connection

Choose the driver's Azure SQL Database template (with Microsoft ODBC Driver 17 or 18, it sets Encrypt=Yes), and always include Database (see Azure SQL Database).

Move to ODBC Driver 18

Stelo recommends Microsoft ODBC Driver 18 for SQL Server for SQL Server sources and destinations.

What changes. Driver 18 encrypts connections by default (Encrypt=Yes) and checks the server's certificate, so a connection string that worked with Driver 17 can fail with a certificate error. If the Stelo VM trusts the SQL Server's certificate, Encrypt=Yes alone is enough. Otherwise add one of these to the connection string:

Add Effect
Encrypt=Yes;TrustServerCertificate=Yes Encrypted, without checking the server's certificate.
Encrypt=No;TrustServerCertificate=Yes Not encrypted, as with Driver 17's default.

For an ODBC DSN, set the same options in the data source. See Microsoft SQL Server in Connection strings.

Before you switch:

  • Install the driver on the computer where the Replicator Service runs. The Capture Agent for SQL Server doesn't use it.
  • Use the driver version Stelo Support provides or has certified for your release, and don't update the Microsoft Visual C++ redistributables on their own: the SQDR installers install the versions SQDR needs.
  • Back up the server, or take a cold snapshot of it, first.

Switch. The driver of an existing source or destination can't be changed (see Connection Method): create a new one with Driver 18.

  • Destinations: an incremental subscription's destination can't be changed, so the members are created again in groups that use the new destination, and baselined (see A different destination). Changing only the connection string or credentials of an existing destination, for example to add TrustServerCertificate, doesn't reset any group.
  • Incremental sources: a new source needs new incremental groups, and every member a new baseline: plan it. Even without a new driver, saving a change to an incremental source's connection string or credentials resets its incremental groups once you confirm (see Changing the connection of an incremental source).