2.2 Generic Keys

A key is a generic key if the KeyName is Driver, DSN, FileDSN, PWD, SaveFile, or UID. Otherwise, a key is a driver-specific key.<1>

This section specifies the meaning of each generic key, as shown in the following table. All Open Database Connectivity (ODBC) drivers MUST process generic keys as described in this section.

Generic keys MUST NOT be used as driver-specific keys.

Key

Meaning

Driver

Specifies the name of the ODBC driver.

DSN

Specifies the name of the Data Source Name (DSN). The length of its value MUST be less than or equal to 32 characters

FileDSN

Specifies the absolute path or relative path to the File DSN. For more information about file path formats, see [MSDN-FILE]. For more information about File DSN, see [MSDN-CUFDS].

PWD

Specifies the password associated with the specified UID.

SaveFile

Specifies the name of a file into which the current connection information is saved as a File DSN upon a successful connection. If no connection is established, no file is written. This can be a file located either on a remote machine or on the local machine. For more information about file path formats, see [MSDN-FILE].

UID

Specifies the user identification to be used when connecting to the data source.