DB-Library new configuration variable

This new feature uses an environment variable to externally configure the DB-Library version level at runtime to change the application code by calling dbsetversion. It provides the following:

Currently, in the source code, DB-Library sets the default version level to DBVERSION_46. The only way you can change this default version level is to call dbsetversion in an application. If a user wishes to use features provided by TDS protocol version 5.0 (for example, numeric and decimal types), the hard coded default version level (DBVERSION_46) needs to be changed. In the past, users had to add the call dbsetversion(DBVERSION_100) to their code. This feature allows you to decide the DB-Library version level without calling dbsetversion from an application.

Definitions

The following are definitions used in describing the new DB-Library configuration variable:

Configuration

To implement this feature, you must define a new environment variable SYBOCS_DBVERSION to allow the DB-Library version level to be configured externally.

The following are valid values for this environment variable:

Any other value causes the DB-Library application to fail.

Processing order

The following paragraphs describe the order for processing the environment variable and the dbsetversion in a DB-Library application: