[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Can't connect to MS SQL server from a 32 bit client

Posted on 2014-08-28
Medium Priority
Last Modified: 2014-08-28
We have a lot of MS SQL 2008 R2 servers in different locations, and there were not problem to use them from a 32bit application. Today we were going to setup another MS SQL server (v10.50.4000, a second SQL instance) and the application server, but somehow I can not connect from a 32 bit application, but 64 bit client connects just fine.
To test a connection from a 32bit application I run the following command from 32bit cmd.exe:
\Windows\SysWOW64\Rundll32.exe "%CommonProgramFiles%\System\OLE DB\oledb32.dll",OpenDSLFile connect.udl
where connect.udl contains the connection string:
; Everything after this line is an OLE DB initstring
Provider=SQLNCLI10.1;Integrated Security="";Persist Security Info=False;User ID=username;Initial Catalog=DBname;Data Source=\INSTANCENAME;Initial File Name="";Server SPN=""

Open in new window

What I have tried: Reinstall the SQL native client to SP2. Checked the server's configuration manager (32bit client protocol is enabled).
Also tried to make a test connection from the server machine itself and from some other machine, works both 64bit and 32bit.
Also works from the problem application server to the main instance of the SQL server.
Question by:zc2
1 Comment
LVL 19

Accepted Solution

zc2 earned 0 total points
ID: 40291010
Found a solution.
In the server configuration manager the second instance had defined alias with non standard TCP port.
The port has to be specified in the connection  string, like:,1435\INSTANCENAME

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question