Select the product you need help with
ODBC Administrator tool displays both the 32-bit and the 64-bit user DSNs in a 64-bit version of WindowsArticle ID: 942976 - View products that this article applies to. On This PageSymptomsA 64-bit version of the Microsoft
Windows
operating system includes the following versions of
the Microsoft Open Database Connectivity (ODBC) Data Source Administrator tool (Odbcad32.exe):
Symptom 1The 32-bit version of the ODBC Administrator tool displays 32-bit system DSNs, 32-bit user DSNs, and 64-bit user DSNs. The 64-bit version of the ODBC Administrator tool displays 64-bit system DSNs, 32-bit user DSNs, and 64-bit user DSNs.Symptom 2The SQLDataSources function returns all versions of user DSNs, regardless of the architecture of the application. The SQLDataSources function that is called in a 32-bit application returns only system DSNs for 32-bit drivers but returns user DSNs for both 32-bit drivers and 64-bit drivers. Similarly, the SQLDataSources function that is called in a 64-bit application returns only system DSNs for 64-bit drivers but returns user DSNs for both 32-bit drivers and 64-bit drivers. Therefore, if the application makes a connection by using a user DSN that is returned from the SQLDataSources function, you may receive the following error message:Data source name not found and no default driver specified CauseThe user DSNs are stored under the
following registry subkey: HKEY_CURRENT_USER\Software\ODBC\ODBC.INI ResolutionTo maintain backward compatibility, no resolution for this problem is currently available. WorkaroundTo work around this problem, use the appropriate version of the ODBC Administrator tool. If you build and then run an application as a 32-bit application on a 64-bit operating system, you must create the ODBC data source by using the ODBC Administrator tool in %windir%\SysWOW64\odbcad32.exe. To indicate the type of DSN, you can add "_32" to the 32-bit user DSNs and "_64" to the 64-bit user DSNs. More informationThe 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. System DSNs are stored in the following registry subkey: HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI User DSNs are stored in the following registry subkey: HKEY_CURRENT_USER\Software\ODBC\ODBC.INI For more information about registry redirection, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/aa384232.aspx
(http://msdn2.microsoft.com/en-us/library/aa384232.aspx)
PropertiesArticle ID: 942976 - Last Review: May 13, 2013 - Revision: 4.0
| Article Translations
|


Back to the top








