According to the documentation for SQLDriverConnect,
Due to the grammar of the connection and initialization file, keywords and attribute values ββthat contain the characters [] {} () ,; * * =! @ not included with braces.
and
A DSN or connection string value enclosed with braces ({}) containing any of the characters [] {} () ,; * * =! @, passed inward to the driver.
Using the connection string DSN=%s;UID=%s;PWD={%s} works in SQLServer - infact if there are certain special characters, and not closing the password in {} fails. However, the use of the same line for MS Access is not performed with an "incorrect password" and works when deleting {} . It also does not work with Oracle.
If a string enclosed in {} is passed to the server intact, should it not work? Or am I missing something?
Jan s source share