on 2018 Aug 28 3:40 PM
I got architecture mismatch using odbc profile xxxx on sybase central
Connection failed.
[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application
however I can use the use DSN xxxx 64 bit sql anywhere 11 driver in odbc data source admin 64 bit
prior to migration I was able to coonect sybase central with the same odbc profile or dsn
how do I avoid the mismatch
thanks to Kris for getting to the solution with regedit in admin mode on the wow6432 node.
got it working.
HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\ODBC\\ODBCINST.INI\\SQL Anywhere 11 Driver REG_EXPAND_SZ %ProgramFiles%\\SQL Anywhere 11\\Bin32\\dbodbc11.dll Setup REG_EXPAND_SZ %ProgramFiles%\\SQL Anywhere 11\\Bin32\\dbodbc11.dll DriverODBCVer REG_SZ 11.00.01.2960
also added "HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\ODBC\\ODBCINST.INI\\ODBC Drivers" SQL Anywhere 11 REG_SZ Installed
however in odbc admin 32 show the driver SQL Anywhere 11 version and Company as "Not Marked" and has no Date value
good news is there the bitness of my sa 11 user Dsn for myDb as 32/64-bit and allowed to connect with the original user DSN
Note I discovered that only the two reg_Sz for Driver and Setup are required as demostrated by another non microsoft odbc driver. Furthermore the value (Default) Reg_sz must be empty resulting display of *Value not set) that non MS odbc driver also show that the Driver and Setup values could have been hard coded with reg_sz type and will allow successful connection
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hm, there really should not be need to modify the registry manually...
The 32-bit driver should be registered fine via
%WINDIR%\\SysWOW64\\regsvr32.exe "%SQLANY11%\\bin32\\dbodbc11.dll"
and the 64-bit driver via
%WINDIR%\\System32\\regsvr32.exe "%SQLANY11%\\bin64\\dbodbc11.dll"
I don't remember that I had to use two different regsvr32.exe files to register the drivers. I have checked this URL, it says nothing about this fact: http://dcx.sap.com/sa160/en/dbprogramming/configuring-driver-client-deploy.html
Yes, since quite some time both regsvr32.exe executables seem to check the bitness of the DLL to register and then start "the other" regsvr32.exe when the DLL's bitness is different from their own. Cf. that SO FAQ.
However, when dealing with bitness issues, I still think it's easier to separate "both worlds" strictly - simply because regsvr32.exe handles bitness "automagically" but odbcad32.exe and many other applications do not.
User | Count |
---|---|
62 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.