Question : odbcad32 DSN to SQL Server 2005/2008 from Windows 7 x64 fails

I am attempting to setup a 32bit ODBC DSN from my Windows 7 X64 PC to SQL Server 2005 or 2008 (either a local instance or a network instance, for both x64 and X86 versions of SQL Server). I get the following error:-

Connection failed:
SQLState: '01000'
SQL Server Error: 0
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]Connection Open
SECCreateCredentials().
Connnection Failed:
SQLState ‘08001’
SQL Server Error 18
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SSL Security Error

This is regardless of using Windows Security or SQL integrated Security in the ODBC DSN connection setup.

When attempting the same using the 64bit ODBC Administrator it works okay!?!

The 32bit ODBC Administrator works fine from Windows XP (x86), Windows Server 2003 (x86 and x64) and Windows Server 2008 (x64). Not sure what is different about Windows 7?

I have identified a similar issue on EE however the solution simply stated that Microsoft Support were consulted and a solution was identified that involved a registry key. Problem is that the solution was not elaborated - not very helpful :-(

Any assistance/advice appreciated.

Answer : odbcad32 DSN to SQL Server 2005/2008 from Windows 7 x64 fails

or simply:
32-bit applications will only see ODBC connections created in the 32-bit
side, and 64-bits applications will only see ODBC connections from the
64-bit side. Each kind of application has is own registry.

To setup DSN for 32-bit application you must use:
%WINDIR%\SysWOW64\odbcad32.exe
and for 64-bit application you must use:
%WINDIR%\System32\odbcad32.exe

Just make sure the paths are set correctly
Random Solutions  
 
programming4us programming4us