When running an application which uses ODBC Data source (DSN), you may get the following error:
The specified DSN contains an architecture mismatch between the Driver and Application
The error arises because the bitness of your application and DSN source is different. For example, you use a 32-bit DSN, but your application is based on 64 bits:
The solution is to unify the bitness of your application and a DSN. For example, create and use a 64-bit DSN in a 64-bit application.
To create a 64-bit DSN use 64-bit ODBC Data Source Administrator:
To create a 32-bit DSN use 32-bit ODBC Data Source Administrator: