On Thu, 2020-11-12 at 21:57 +1100, Alistair Leslie-Hughes wrote:
Based off MSDN for function SQLConfigDataSource. The mode is explicitly set to ODBC_USER_DSN or ODBC_SYSTEM_DSN and reset to ODBC_BOTH_DSN at the end of the function.
https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlconfigdatasour...
Yes, I am currently restoring the old value, which is ODBC_BOTH_DSN, unless the app changed the default. I think that makes more sense than returning a hardcoded ODBC_BOTH_DSN.