SQL Server (MSSQL)
SQL Server datasources use the ODBC driver and Microsoft ODBC Driver 18 for SQL Server.See Supported Data Formats for database source categories and schema column types supported on SQL Server connections.
Connection configuration
URI format
Required fields
Optional fields
Environment variables
The
ODBC_MSSQL_DRIVER environment variable allows you to use a different version of the Microsoft ODBC driver (e.g., Driver 17) without modifying the connection configuration.Example connection
Dataset configuration (data_args)
Required fields
Optional fields
table_options entry
Each entry intable_options describes a table to query:
Complete example
Connection
Dataset
Encryption configuration
SQL Server connections support several TLS encryption modes via theencryption field:
Legacy certificate support
For SQL Server instances using older certificates with negative serial numbers:Driver and dependencies
The Microsoft ODBC Driver 18 must be installed on the CloudQuant Data Liberator host. To use a different driver version, set the
ODBC_MSSQL_DRIVER environment variable.Troubleshooting
ODBC driver not found
Verify the Microsoft ODBC Driver 18 is installed and registered:Using a different driver version
Override the default driver with an environment variable:Certificate errors (x509)
If you seex509: certificate signed by unknown authority or negative serial number errors:
Connection timeout
SQL Server may be configured to listen on a non-default port or require a named instance. Verify connectivity:Windows authentication
CloudQuant Data Liberator uses SQL Server authentication (username/password). Windows/Kerberos authentication is not supported through this connection type.Slow queries
- Increase
batch_sizefor large result sets (up to100000). - Ensure the datetime and key columns are indexed.
- For partitioned tables, use
dt_regexto scope queries to relevant partitions. - Consider using
datetime2overdatetimefor better precision and performance.

