Re: ODBC issue in windows 7
ODBC is way old technology, and SQL Server offers OLEDB Providers that provide better performance and more flexibility.
However most likely your trouble isn't Windows 7, but that your program is being run on 64-bit Windows for the first time. You probably are using a DSN, and you probably created it there using the wrong (64-bit) ODBC Administrator tool:
The 32-bit version of the ODBC Administrator tool and the 64-bit version of the ODBC Administrator tool display both the 32-bit user DSNs and the 64-bit user DSNs in a 64-bit version of the Windows operating system
Quote:
The 64-bit ODBC Administrator tool can be invoked from Control Panel to manage user DSNs and system DSNs that are used by 64-bit processes. On a 64-bit operating system, the 32-bit ODBC Administrator tool is used for Windows on Windows 64 (WOW64) processes. You must directly invoke the 32-bit ODBC Administrator tool from the SysWoW64 folder. You can use the 32-bit ODBC Administrator tool to manage user DSNs and system DSNs that are used by WOW64 processes.
This is a very tired, old issue (ever since Win2K 64-bit came out) covered here many times in recent years. Consider moving away from ODBC or at least to DSN-less connection strings. 1993 is long gone.