OpenLink Software Logo

OpenLink SQL Server ODBC Driver for Windows

Installation and Configuration Guide for Lite Edition

Overview

This installation guide walks you through the installation of the Lite Edition ODBC Driver for Microsoft SQL Server to a Personal or Application Server host functioning as a client to a SQL Server Database.

SQL Server Lite Architecture
SQL Server Lite Architecture
ℹ️ Note: This guide is specifically for the Lite Edition of the driver, which is designed for direct client-to-database connections on Windows systems.

Installation Steps

Step 1: Download the Installer Archive

Visit the OpenLink ODBC Lite Edition Driver Download Page to download the appropriate ODBC driver for SQL Server.

Alternatively, curl can be used to download the installer directly:

curl -O https://download3.openlinksw.com/uda/components/10.0/x86_64-generic-win-64/wal10mzzz.msi

Step 2: Run the Installer

Run the wal10mzzz.msi Windows MSI installer.

Installation Wizard Launch

Step 3: Proceed

Select Next to proceed with the installation.

Installation Wizard Next

Step 4: License Agreement

Accept the License Agreement and click Next to proceed.

License Agreement Screen

Step 5: License File Location

Select the location of the sql_lt.lic license for insertion in the correct location during installation, or select the "I don't want to install a license file right now" check box option to install later.

License File Location

Step 6: Installation Type

Select the Complete or Typical installation to install in default location and go to Step 8, or Custom to choose custom components and location to perform the installation.

Installation Type Selection

Step 7: Choose Components (Custom Install)

Choose what components to install and the location to install to.

Component Selection

Step 8: Execute Installation

Click on the Install button to perform the installation.

Ready to Install

Step 9: Progress

The installation is in progress.

Installation in Progress

Step 10: Complete

The installation is complete. A reboot may be required to replace updated files or for other configuration changes to take effect.

Installation Complete
Reboot Required

Configuration

Follow these specific steps to configure the driver.

1. Open ODBC Administrator

Open the Windows ODBC Data Source Administrator (64-bit) and click on the Add button to create an ODBC DSN.

ODBC Administrator

2. Select Driver

Select the OpenLink Lite for SQL Server and Sybase (10.0) ODBC driver.

Driver Selection

3. DSN Name

Enter an ODBC DSN Name and optional Description.

DSN Configuration

4. Host and Port

Choose Microsoft SQL Server as the database type and enter the Host Name and Port number of the target SQL Server instance.

Host and Port Configuration
Host Name
The hostname or IP address on which Microsoft SQL Server listens.
Port
The TCP port on which Microsoft SQL Server listens (Default: 1433).

5. Authentication Method

Choose the SQL Server authentication method to be used:

Authentication Method
With Integrated Windows authentication (ntlm)
Specifies that the driver request a secure (or trusted) connection to a SQL Server using your Windows login.
With Microsoft EntraID Integrated authentication
Specifies that the driver authenticate to SQL Server using Microsoft Entra ID (ActiveDirectoryIntegrated).
With SQL Server authentication (Default)
Specifies that the driver authenticate using a login ID and password entered by the user.
With Azure Service Principal authentication
Authenticate using a Microsoft Entra service principal.
With Azure Managed Service Identity
Authenticate using a Managed Identity (ActiveDirectoryMsi).

6. Server Type

Choose the SQL Server Type to be connected to.

Server Type Selection

Server Type is an OpenLink proprietary parameter that associates the connection with a particular TDS version.

7. Connection Details

Enter the Instance Name, Mirror Host, Conn Timeout, and Use strong encryption if applicable. Select "Connect now" to verify settings, provide login details, and click Next.

Connection Details
Instance Name
Microsoft SQL Server instance name. Can also be specified as ServerName\InstanceName.
Mirror Host
The name of the Failover Server hosting the mirrored database if configured.
Use strong encryption of data
Enable SSL encryption of data between driver and database.
Multi Subnet Failover
Switches ON SQL Server Multi Subnet Failover mode.

8. Advanced Options (Optional)

Use the Advanced button to configure advanced connection attributes if required.

Advanced Connection Options
Use Mars
Multiple Active Result Sets enables concurrent processing of multiple queries on a single connection.
Application Readonly Intent
Requests connection to a read-only node in an Availability Group cluster.
Verify Server Certificate / CA File
Used to verify the database server SSL certificate against a CA file.

9. Database & Packet Size

Enter the Database, Character set, and Language or select from available items. Click Next.

Database and Language Settings
Database
The target Microsoft SQL Server database.
Packet Size
Determines bytes per network packet. 0 = default, -1 = max allowable. Correct setting can improve performance.
Prepare Method
Determines whether stored procedures are created for SQLPrepare calls (None, Partial, Full).
No Quoted Identifiers
Required for Jet engine based products like MS Access.

10. Cursors & Logging

Configure cursor and logging parameters (typically defaults are fine) and click Next.

Cursor and Logging Options
Read-only connection
Must be unchecked to INSERT, UPDATE, or DELETE records.
Defer fetching of long data
Improves performance when queries do not include LONG data fields.
Dynamic Cursor Sensitivity
Enables/disables the row version cache used with dynamic cursors.

11. Compatibility Options

Configure compatibility options and click Next.

Compatibility Options
Enable Microsoft Jet engine options
Facilitates translation of data types for MS Access/Jet Engine.
SQL_DBMS_NAME
Manually overrides the response for products like Microsoft InfoPath (value should be "SQL Server").

12. Test Data Source

Select the Test Data Source button to make a test connection to the database.

Test Data Source

13. Success

The test connection should be successful.

Test Connection Success

C++ Demo Test Connection

Follow these steps to verify the connection using the provided C++ Demo application.

  1. From the OpenLink Software program menu run the C++Demo sample application.
    (Typically located at C:\Program Files\OpenLink Software\UDA\Samples\Odbc\cppdemo.exe) Run C++ Demo
  2. Select the Environment -> Open Connection menu item. Open Connection Menu
  3. Select the ODBC DSN to use. Select DSN
  4. Enter login details for the target database. Enter Login Details
  5. Select the SQL -> Execute SQL menu item. Execute SQL Menu
  6. Enter a valid SQL query and click the OK button to run it. Run SQL Query
  7. The query results are displayed. Query Results

Troubleshooting

If you encounter issues during the "Test Data Source" step or while connecting with applications, check the following common scenarios:

1. Connection Refused or Timeout

If the connection fails with a timeout error, ensure that:

  • The SQL Server hostname or IP address is correct.
  • Port 1433 (or your custom port) is open on the server's firewall.
  • The SQL Server instance is actually running on the target machine.
2. Instance Not Found

If connecting to a specific instance (e.g., Server\InstanceName) fails:

  • Ensure the SQL Server Browser service is running on the server. This service is required for resolving instance names to ports.
  • Alternatively, specify the exact port number in the "Port" field instead of relying on the instance name resolution.
3. Authentication Failed

If you receive "Login failed for user...", verify:

  • You are using the correct Authentication Method (Windows Integration vs. SQL Server Authentication).
  • If using SQL Server Authentication, ensure "Mixed Mode Authentication" is enabled on the server.
For more detailed error codes and solutions, please visit the OpenLink Troubleshooting Resources page.

Frequently Asked Questions

How do I download the OpenLink ODBC driver?
You can visit the OpenLink ODBC Lite Edition Driver Download Page or use curl to download the installer directly via the provided URL: curl -O https://download3.openlinksw.com/uda/components/10.0/x86_64-generic-win-64/wal10mzzz.msi.
What is the name of the installer file?
The installer file is named wal10mzzz.msi for the x86_64-generic-win-64 platform.
How can I handle the license file during installation?
You can select the location of the sql_lt.lic file during installation or check the box to install the license file later.
What authentication methods are supported?
Supported methods include Integrated Windows (NTLM), Microsoft EntraID (Integrated, Password, Interactive), Azure Managed Service Identity, Service Principal, and standard SQL Server authentication.
What does the 'Packet Size' option do?
It determines the number of bytes per network packet. 0 uses the default, -1 computes the maximum allowable, and 1-10 indicates multiples of 512 bytes.
What is the purpose of the 'Mars' option?
MARS stands for Multiple Active Result Sets. It enables the concurrent processing of multiple statements or queries on a single connection.
How do I verify the connection after configuration?
You can use the Connect now option within the DSN setup or run the C++Demo sample application provided in the OpenLink program menu.
What is the 'Application Readonly Intent'?
It is a request for the driver to ask the SQL Server listener for connectivity to either a read-only or read-write node within a clustered instance.
How can I enable SSL encryption?
Check the Use strong encryption of data option during configuration to enable SSL encryption between the driver and the database.
What should I do if I need to use quoted identifiers?
If you require quoted identifiers (e.g., for MS Access), ensure the No Quoted Identifiers option is configured appropriately based on your needs.
How do I specify a specific SQL Server Instance name?
You can specify a Microsoft SQL Server instance by appending \InstanceName to the ServerName (e.g., ServerName\InstanceName) in the Host Name field.
What does 'Dynamic Cursor Sensitivity' control?
It enables or disables the row version cache. When set high, it calculates checksums to detect if rows have been updated since they were last fetched.
How can I generate an AccessToken for Azure Service Principal?
You can use the Azure CLI command az account get-access-token with the appropriate resource URL to generate the AccessToken.

Glossary

ODBC (Open Database Connectivity)
A standard API for accessing database management systems (DBMS) on Windows. ODBC provides a database-agnostic interface that allows applications to connect to various databases using a common set of functions.
DSN (Data Source Name)
A named configuration stored in the Windows registry that contains the driver, server, authentication, and other parameters needed to establish a connection to a database.
TDS (Tabular Data Stream)
The application layer protocol used by Microsoft SQL Server to transfer data between a database server and clients. Different TDS versions support different SQL Server features and capabilities.
MARS (Multiple Active Result Sets)
A feature that enables the concurrent processing of multiple statements or queries and result sets on a single connection, improving application performance.