Using SQL Server 2008 R2
I have 2 SQL Server instances on my PC, SQL1
and SQL2
.
I have Windows XP installed in a VirtualBox. In XP, I have an application which can connect to SQL Servers.
When I try to connect to SQL1
, everything is fine, but when I try to do that with SQL2
it errors out with
Could not open a connection to SQL Server
So I started checking the settings. I can connect to SQL2
using SQL Server Management Studio (on a local PC), so I checked that 'Allow remote connections to this server' was enabled. Also, in SQL Server configuration tool I enabled all protocols for this instance, just as it is for the SQL1
. SQL Server browser is working.
Configuration of both instances seem to be identical. There is only one difference between SQL1
and SQL2
that I have noticed.
SQL1
version is 10.50.4000SQL2
version is 10.50.1600
What can cause one of the instances to be unreachable through the network while the other one can be, and both settings are the same?
It could be firewall settings or network settings. For an instance to be reachable, configure at least the following.
See Configure the Windows Firewall to Allow SQL Server Access