Try setting the version number first before doing anything else

Qt Code:
  1. db.setConnectOptions("SQL_ATTR_ODBC_VERSION=SQL_OV_ODBC3");
To copy to clipboard, switch view to plain text mode