---
title: "Advanced configuration for SQL Server"
description: "Optional features of the SQL Server drivers, each with its own settings."
url: urn:osdi:this
dateModified: 2026-12-02T22:50:41Z
language: en
---
[Home](urn:osdi:site)/[UDA](urn:osdi:siteuda/)/[Data access drivers](urn:osdi:siteuda/#databases)/How-to reference/Advanced configuration for SQL Server

# Advanced configuration for SQL Server

[Choose a driver](urn:osdi:siteuda/#databases)

Optional features of the SQL Server drivers, each with its own settings.

[Advanced configuration for SQL Server](#wiki-features)

## Advanced configuration for SQL Server

Optional features of the SQL Server drivers, each with its own settings.

Configure Microsoft SQL Server Auto Discovery

### Configure Microsoft SQL Server Auto Discovery

Use the following steps to configure Microsoft SQL Server Auto Discovery.

#### Single-Tier Drivers

1. Log in to the machine that hosts OpenLink's Single-Tier (Lite Drivers).

2. Launch your ODBC or iODBC Data Sources Administrator.

3. Locate your OpenLink DSN.

4. Click the Configure button.

5. Scroll through the configuration screens until you find the Server Name drop-down menu.

6. Use the drop-down menu to invoke the driver's Dynamic discovery feature.

7. Select from the available Microsoft SQL Server instances.

Configure Microsoft SQL Server Database Mirroring

### Configure Microsoft SQL Server Database Mirroring

Use the following steps to configure Microsoft SQL Server Database Mirroring.

#### Single-Tier (Lite) Drivers on Windows and Mac OS X

1. Log in to the machine that hosts OpenLink's Single-Tier (Lite Drivers).

2. Launch your ODBC or iODBC Data Sources Administrator.

3. Locate your OpenLink DSN.

4. Click the Configure button.

5. Scroll through the configuration screens until you find the Mirror Host drop-down menu.

6. Select the name of the Failover Server hosting the mirrored database.

#### Single-Tier (Lite) on Unix/Linux or Multi-Tier Drivers

1. Log in to the machine that hosts OpenLink's Driver.

2. Edit the odbc.ini file and location the OpenLink DSN.

3. Set the connection option (-O) to **`-F <fail-over server name>`** to specify the Fail over server name for Database Mirroring.

Configure Microsoft SQL Server Express Support

### Configure Microsoft SQL Server Express Support

No special configuration is needed to connect to Microsoft SQL Server Express. Use OpenLink's standard DSN configuration instructions.

Configure Microsoft SQL Server Multiple Active Result Sets

### Configure Microsoft SQL Server Multiple Active Result Sets

Use the following steps to configure Microsoft SQL Server Database Mirroring.

#### Single-Tier (Lite) Drivers - Mac & Windows

1. Log in to the machine that hosts OpenLink's Single-Tier (Lite Drivers).

2. Launch your ODBC or iODBC Data Sources Administrator.

3. Locate your OpenLink DSN.

4. Click the Configure button.

5. Scroll through the configuration screens until you find the MARS checkbox.

6. Check the MARS checkbox.

#### Single-Tier (Lite) Drivers - Unix

1. Login to the machine that hosts OpenLink's Single-Tier client drivers.

2. Use the Web-based iODBC Data Sources Administrator to access your DSN.

3. Locate the Connection Options field of your DSN.

4. Locate the MARS checkbox.

5. Check the MARS checkbox.

#### Multi-Tier Drivers

1. Login to the machine that hosts OpenLink's Multi-Tier client drivers.

2. Use the relevant Data Sources Administrator or Web-Based Admin Assistant to access your DSN.

3. Locate the Connection Options field of your DSN.

4. Locate the MARS checkbox.

5. Check the MARS checkbox.

Configure MS SQL Server Named Instance Support

### Configure MS SQL Server Named Instance Support

Use the following steps to configure Microsoft SQL Server Named Instance support.

#### Single-Tier (Lite) Drivers - Mac & Windows

1. Log in to the machine that hosts OpenLink's Single-Tier (Lite Drivers).

2. Launch your ODBC or iODBC Data Sources Administrator.

3. Locate your OpenLink DSN.

4. Click the Configure button.

5. Scroll through the configuration screens until you find the Server Name field.

6. Click the Advanced button that appears under the Server Name field.

7. Locate the Server Name field that appears on the Advanced dialog.

8. Pass ServerName\InstanceName in this field. For example:

NKHATAM\SQLSERVER

#### Single-Tier (Lite) Drivers - Unix

1. Login to the machine that hosts OpenLink's Single-Tier client drivers.

2. Use the Web-based iODBC Data Sources Administrator to access your DSN.

3. Locate the Connection Options field of your DSN.

4. Locate the Connection Options field.

5. Pass -S ServerName\InstanceName in this field. For example:

-S NKHATAM\SQLSERVER

#### Multi-Tier Drivers

1. Login to the machine that hosts OpenLink's Multi-Tier client drivers.

2. Use the relevant Data Sources Administrator or Web-Based Admin Assistant to access your DSN.

3. Locate the Connection Options field of your DSN.

4. Pass -S ServerName\InstanceName in this field. For example:

-S NKHATAM\SQLSERVER

Single Driver Connectivity to Multiple Instances

### Single Driver Connectivity to Multiple Instances

- [Single-Tier Drivers on Unix Client to SQL Server 2005+](#t-ConfigureSQL2005MultipleInstancesSTUnix)
- [Single-Tier Drivers on Unix Client to SQL Server 2000](#t-ConfigureSQL2000MultipleInstancesSTUnix)
- Multi-Tier Drivers (All) to SQL Server 2005+

Single Driver Connectivity to Multiple Instances

### Single Driver Connectivity to Multiple Instances

#### Single-Tier Drivers on Unix Client to SQL Server 2005

Use the following instructions to connect one client to multiple SQL Server instances:

1. [Identify your Microsoft SQL Server instance names](#t-HowDoIFindMySQLServerInstanceName)
2. Log in to the machine that hosts your OpenLink Single-Tier driver.
3. `cd` into the root of the OpenLink installation.
4. Use the `bash` or `sh` command to open a bash or bourne shell.
5. Execute this command:   
   
 Shell`. ./openlink.sh`
6. cd into the bin sub-directory of OpenLink.
7. vi the openlink.ini file.
8. Locate the `[Server Types]` section.
9. Create a meaningful label for each of your SQL Server instances. For example:   
   
 INI`[Server Types] DB2 = Informix 5 = Informix 6 = . . . Instance1 = Instance2 =`
10. Locate this stanza in the file --   
   
 INI`[Environment SQLServer 2005] FREETDSCONF = /usr/openlink/bin/freetds.conf DSQUERY = SQLSERVER ; Load this section from freetds.conf TDSHOST = host.domain ; Point this to your SQLServer machine TDSPORT = 1433 TDSVER = 8.0 SQLSERVER_CATALOG = Y CURSOR_SENSITIVITY = LOW ; Set to HIGH after loading oplrvc.sql`
11. Copy and paste this stanza once for each new SQL Server instance that you want to add.
12. Make the following modifications to the new stanzas --
  1. Modify `[Environment SQLServer 2005]` so that "`SQL Server 2005`" is replaced with one of the labels you created above;e.g., `[Environment Instance1]`.
  2. Pass the hostname or IP address of the SQL Server instance to `TDSHOST`.
  3. Pass the tcp port associated with the instance to `TDSPORT`.
  4. Set `TDSVER` to `9.0` for SQL Server 2005.
  5. Ensure you have an end result similar to this --   
   
 INI`[Environment Server 1] FREETDSCONF = /usr/openlink/bin/freetds.conf DSQUERY = SQLSERVER ; Load this section from freetds.conf TDSHOST = 192.158.12.121 TDSPORT = 1433 TDSVER = 9.0 SQLSERVER_CATALOG = Y CURSOR_SENSITIVITY = LOW ; Set to HIGH after loading oplrvc.sql [Environment Server 2] FREETDSCONF = /usr/openlink/bin/freetds.conf DSQUERY = SQLSERVER TDSHOST = 192.158.12.121 TDSPORT = 1434 TDSVER = 9.0 SQLSERVER_CATALOG = Y CURSOR_SENSITIVITY = LOW ; Set to HIGH after loading oplrvc.sql`
13. Save your changes and exit the file.
14. vi odbc.ini.
15. Proceed to create your DSNs as per usual. However, pass the appropriate label from the `[Server Types]` section of openlink.ini. For example --   
   
 INI`[Development DSN] Driver = /usr/openlink/lib/sql_mt_lt.so ServerType = Instance1 Username = sa ;Password = Database = Northwind Options = -H 192.158.12.121 -P 1433 -V 9.0 FetchBufferSize = 99 ReadOnly = no DeferLongFetch = no JetFix = no Description = connection to Instance1 [Production DSN] Driver = /usr/openlink/lib/sql_mt_lt.so ServerType = Instance2 Username = sa ;Password = Database = pubs Options = -H 192.158.12.121 -P 1434 -V 9.0 FetchBufferSize = 99 ReadOnly = no DeferLongFetch = no JetFix = no Description = connection to Instance2`
16. Save your changes and exit the file.
17. Test.

Single Driver Connectivity to Multiple Instances

### Single Driver Connectivity to Multiple Instances

#### Single-Tier Drivers on Unix Client to SQL Server 2000

Use the following instructions to connect to SQL Server DBMSs that host multiple SQL Server instances:

1. Use the following steps to identify your instance names --

- [Microsoft SQL Server instance name](#t-HowDoIFindMySQLServerInstanceName)

Microsoft SQL Server instance names should be immediately visible. Example: SQLSERV1, SQLSERV2.

2. Login to the machine that hosts your OpenLink Single-Tier driver.

3. cd into the root of the OpenLink installation.

4. Use the bash or sh command to open a bash or bourne shell.

5. Execute this command:

Shell

```
. ./openlink.sh
```

6. cd into the bin sub-directory of OpenLink.

7. vi the openlink.ini file.

8. Locate the `[Server Types]` section.

9. Create a meaningful label for each of your SQL Server instances. For example:

INI

```
[Server Types]
DB2             =
Informix 5      =
Informix 6      =
.
.
.
Server 1        =
Server 2        =
```

10. Locate this stanza in the file --

INI

```
[Environment SQLServer 2000]
FREETDSCONF        = /usr/openlink/bin/freetds.conf
DSQUERY            = SQLSERVER  ; Load this section from freetds.conf
TDSHOST            = host.domain        ; Point this to your SQLServer machine
TDSPORT            = 1433
TDSVER             = 8.0
SQLSERVER_CATALOG  = Y
CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading oplrvc.sql
```

11. Copy and paste this stanza once for each new SQL Server instance that you want to add.

12. Make the following modifications to the new stanzas --

a) Modify `[Environment SQLServer 2000]` so that "SQL Server 2000" is replaced with one of the labels you created above;e.g., `[Environment Server 1]`.

b) Pass the desired instance name to DSQUERY. For example `DSQUERY=SQLSERV1`.

c) Pass the hostname or IP address of the SQL Server instance to TDSHOST.

d) Pass the tcp port associated with the instance to TDSPORT.

e) Set TDSVER to 8.0, if any other value appears.

f) Ensure you have an end result similar to this --

INI

```
[Environment Server 1]
FREETDSCONF        = /usr/openlink/bin/freetds.conf
DSQUERY            = SQLSERV1  ; Load this section from freetds.conf
TDSHOST            = 192.158.12.121
TDSPORT            = 1433
TDSVER             = 8.0
SQLSERVER_CATALOG  = Y
CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading oplrvc.sql
[Environment Server 2]
FREETDSCONF        = /usr/openlink/bin/freetds.conf
DSQUERY            = SQLSERV2
TDSHOST            = 192.158.12.121
TDSPORT            = 1434
TDSVER             = 8.0
SQLSERVER_CATALOG  = Y
CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading oplrvc.sql
```

13. Save your changes and exit the file.

14. vi freetds.conf.

15. Make one new entry per each SQL Server instance using these conventions --

INI

```
[<Instance Name>]
host                    = <ntmachine.domain.com>
port                    = <port>
tds version             = 8.0
try server logins       = yes
```

For example --

INI

```
[SQLSERVER1]
host                    = 192.158.12.121
port                    = 1433
tds version             = 8.0
try server logins       = yes
[SQLSERV2]
host                    = 192.158.12.121
port                    = 1434
tds version             = 8.0
try server logins       = yes
```

16. Save your changes and exit the file.

17. vi odbc.ini.

18. Proceed to create your DSNs as per usual. However, pass the appropriate label from the `[Server Types]` section of openlink.ini. For example --

INI

```
[Development DSN]
Driver          = /usr/openlink/lib/sql_mt_lt.so
ServerType      = Server 1
Username        = sa
Password        = sa
Database        = Northwind
Options         = -H 192.158.12.121 -P 1433 -V 8.0
FetchBufferSize = 99
ReadOnly        = no
DeferLongFetch  = no
JetFix          = no
Description     = Sample SQLServer 2000 Lite Connection
[Production DSN]
Driver          = /usr/openlink/lib/sql_mt_lt.so
ServerType      = Server 2
Username        = sa
Password        = sa
Database        = pubs
Options         = -H 192.158.12.121 -P 1434 -V 8.0
FetchBufferSize = 99
ReadOnly        = no
DeferLongFetch  = no
JetFix          = no
Description     = Sample SQLServer 2000 Lite Connection
```

19 Save your changes and exit the file.

20. Test.

Configure SQL Server Single Sign On

### Configure SQL Server Single Sign On

Microsoft SQL Server Single Sign On is easy to configure. Simply leave the username and password fields blank. This feature is only applicable when connection requests are initiated from Windows clients.

Force SSL Data Encryption on Database Connections to Microsoft SQL Server

This setup is not necessary for connections to Microsoft SQL Server instances which are configured to demand SSL connections from clients; such demands are handled automatically by the drivers.*Note that SSL connections are never supported by Microsoft SQL Server 7 or earlier, nor when using TDS Version 7.0 or 4.2.*

### Single-Tier (Express Edition) ODBC Drivers (Mac & Windows)

1. Log in to the machine that hosts OpenLink's Single-Tier (Express) Drivers.
2. Launch your ODBC or iODBC Data Sources Administrator.
3. Locate your OpenLink DSN.
4. Click the Configure button.
5. Scroll through the configuration screens until you find the Advanced button.
6. Click the Advanced button.
7. Locate the SSL parameter.
8. Set the SSL parameter to one of the following options:
  - **`off`** ­ - SSL is not request or used. This is the default.
  - **`request`** ­- SSL is requested; if the server does not support it then a plain connection is used.
  - **`require`** ­ - SSL is requested; if the server does not support it then an exception is thrown.
  - **`authenticate`** - ­ Same as require except the server's certificate must be signed by a trusted CA.

### Single-Tier (Lite Edition) ODBC Drivers

#### Single-Tier (Lite Edition) ODBC Drivers - Mac & Windows

1. Log in to the machine that hosts OpenLink's Single-Tier (Lite Drivers).
2. Launch your ODBC or iODBC Data Sources Administrator.
3. Locate your OpenLink DSN.
4. Click the Configure button.
5. Scroll through the configuration screens until you find the "Use strong encryption of data" checkbox.
6. Tick the Encryption checkbox to make the driver demand an SSL encrypted connection to the Microsoft SQL Server instance. If the target instance is not configured for or capable of SSL connections, the connection will fail.
7. Tick the "Verify Server Certificate" to verify the SSL Certificate presented by the database server against a local certificate. You must also specify the location of a Valid SSL Certificate for this verification.

#### Single-Tier (Lite Edition) ODBC Drivers - Unix

1. Login to the machine that hosts OpenLink's Single-Tier client drivers.
2. Use the Web-based iODBC Data Sources Administrator to access your DSN.
3. Locate the Connection Options field of your DSN.
4. Pass the following flags and applicable attributes in the Connection Options field:
  - **`-E`** - The driver will demand an SSL encrypted connection to the Microsoft SQL Server instance. If the target instance is not configured for or capable of SSL connections, the connection will fail.
  - **`-R`** - Verify the SSL Certificate presented by the database server against the one specified with the `-D` flag.
  - **`-D </path/to/file>`** - Specify the location of a Valid SSL Certificate to be used for the verification triggered by the `-R` flag

### Multi-Tier Drivers (all data access mechanisms)

1. Login to the machine that hosts OpenLink's Multi-Tier Generic Client ODBC Driver, JDBC Driver, or ADO.NET Provider.
2. Use the relevant Data Sources Administrator or Web-Based Admin Assistant to access your ODBC DSN, JDBC URL, or connect string.
3. Locate the Connection Options field of your connect string.
4. Pass the following flags and applicable attributes in the Connection Options field:
  - **`-E`** - The driver will demand an SSL encrypted connection to the Microsoft SQL Server instance. If the target instance is not configured for or capable of SSL connections, the connection will fail.
  - **`-R`** - Verify the SSL Certificate presented by the database server against the one specified with the `-D` flag.
  - **`-D </path/to/file>`** - Specify the location of a Valid SSL Certificate to be used for the verification triggered by the `-R` flag

Configure Microsoft SQL Server Snapshot Isolation Levels

### Configure Microsoft SQL Server Snapshot Isolation Levels

Use the following instructions to enable snapshot isolation levels.

#### Single-Tier (Lite) Drivers - Mac & Windows

1. Log in to the machine that hosts OpenLink's Single-Tier (Lite Drivers).

2. Launch your ODBC or iODBC Data Sources Administrator.

3. Locate your OpenLink DSN.

4. Click the Configure button.

5. Scroll through the configuration screens until you find the "Map Serializable to Snapshot isolation level" checkbox.

6. Check the checkbox.

#### Single-Tier (Lite) Drivers - Unix

1. Login to the machine that hosts OpenLink's Single-Tier client drivers.

2. Use the Web-based iODBC Data Sources Administrator to access your DSN.

3. Locate the Connection Options field of your DSN.

4. Pass the following flag in the Connection Options field: -Z

#### Multi-Tier Drivers

1. Login to the machine that hosts OpenLink's Multi-Tier client drivers.

2. Use the relevant Data Sources Administrator or Web-Based Admin Assistant to access your DSN.

3. Locate the Connection Options field of your DSN.

4. Pass the following flag in the Connection Options field: -Z

Configure Microsoft SQL Server Unicode Support

### Configure Microsoft SQL Server Unicode Support

No special configuration is needed.

See Also: [Microsoft SQL Server Unicode Configuration](#t-SQLServerUnicodeConfig)

This guide for another platform:

[← Data access drivers](urn:osdi:siteuda/#databases)
