Specifies whether the Mode CLI/ODBC configuration keyword returns a numeric value or string value.
The Mode CLI/ODBC configuration keyword sets the CONNECT mode to either SHARE or EXCLUSIVE. OLE DB expects the value for Mode to have a numeric representation instead of a string representation. RetOleDbConnStr toggles between returning a string and a numeric value.
DSN=SAMPLE;MODE=SHARE
then
the output connection string will have the following format: DSN=SAMPLE;UID=;PWD=;MODE=3
DSN=SAMPLE;UID=NEWTON;PWD=SECRET;MODE=EXCLUSIVE
then
the output connection string will have the following format: DSN=SAMPLE;UID=NEWTON;PWD=SECRET;MODE=12
OLE DB applications that use the string representation for the value of the Mode keyword returned by SQLDriverConnect()and SQLBrowseConnect() will receive an error from OLE DB Component Services. OLE DB Component Services returns an error because it expects the keyword Mode to have numeric values. Setting RetOleDbConnStr to 1 avoids this behavior, as the value for Mode will then be numeric.