Create a 32-bit DSN on 64-bit machine for SQL Server
During the install of an application on a 64-bit Windows machine, the application was unable to list the ODBC System DSN because it had been setup as a 64-bit DSN and the application needed a 32-bit system DSN for connectivity to SQL Server. In this tip, we cover how to create a 32-bit DSN on 64-bit machine.
Before creating the DSN make sure the SQL Server Native client component is installed on the machine. You can install the SQL Server native client either from the SQL Server media or by downloading it from http://www.microsoft.com/download/en/details.aspx?id=16978.
Below are the steps to create a 32-bit DSN on a 64-bit machine.
On the 64-bit machine where the application is installed, open the Microsoft Windows ODBC Data Source Administrator using one of the methods shown below.
Open C:\WINDOWS\SYSWOW64\odbc32.exe or type %systemdrive%\Windows\SysWoW64\Odbcad32.exe in the Run window.
Select the System DSN tab and click on the Add... button.
Select the SQL Server Native Client 10.0 from the list and click on the Finish button.
Specify the data source name, description and the SQL Server instance name. Click Next to proceed.
Select the authentication mode as per the requirement. For SQL authentication, specify the SQL login name and password. Click Next to proceed.
Select the desired application database from drop down list and click Next.
Click on Finish and test the data source connectivity.
- Document the DSN details for the application connectivity
- As you may have noticed, the real trick is running the 32-bit version of the ODBC Data Source Administrator
Last Updated: 2011-09-22
About the author
View all my tips