none
The specified DSN contains an architecture mismatch between the Driver and Application - Error comes when c++ start pointing to SQL 2012 RRS feed

  • Question

  • Dear Team,

    My c++ application use system DSN (ODBC). It is working fine with SQL 2008R2.

    We have migrated from SQL 2008r2 to SQL 2012. I have created new DSN for SQL 2012. Testing of DSN is fine, no issue.

    When my c++ application tying to use DSN, i'm getting below error message on log file.

    53914.775 (8632):: ERR  EXCEPTION. ADO Connection Open Provider_ERROR_1={ 16389 <[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application>}

    COM_ERROR={[-2147467259]Unspecified error; <[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application>(source=Microsoft OLE DB Provider for ODBC Drivers)}

    I create DNS - using below dll - SQLSRV32.DLL - version 6.01.7601.17514

    My c++ application is in 32 bit. My hosting server is server 2008.

    Regards,

    Mitesh Sheth

    Wednesday, July 2, 2014 8:34 PM

Answers

  • No, it is not 32 bit issue.

    I got resolution. I have installed SQL Server Native Client 11 and it start working.

    Regards,

    Mitesh Sheth

    • Marked as answer by Mitesh Sheth Thursday, July 3, 2014 1:38 PM
    Thursday, July 3, 2014 1:38 PM

All replies