If you want to use a connection string for connecting to a database, or if your application requires it, you must specify either a DSN (data source name), a File DSN, or a DSN-less connection in the string. The difference is whether you use the DSN=, FILEDSN=, or the DRIVER= keyword in the connection string, as described in the ODBC specification. A DSN or FILEDSN connection string tells the driver where to find the default connection information. Optionally, you may specify attribute=value pairs in the connection string to override the default values stored in the data source.
The logon dialog is not currently supported on macOS platforms. For connection strings using a DSN or File DSN, this means that all required connection information must be provided in the data source and/or connection string.
The DSN-less connection string specifies a driver instead of a data source. All connection information must be entered in the connection string because the information is not stored in a data source.
The "Connection Option Descriptions" section lists the long and short names for each attribute, as well as the initial default value when the driver is first installed. You can specify either long or short names in the connection string.
An example of a DSN connection string with overriding attribute values for Oracle Wire Protocol is:
DSN=Accounting;ID=JOHN;PWD=XYZZY
A FILEDSN connection string is similar except for the initial keyword:
FILEDSN=OracleWP.dsn;ID=JOHN;PWD=XYZZY
A DSN-less connection string must provide all necessary connection information: