Re: Cannot connect with one machine but can with others
- From: "Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
- Date: Mon, 24 Nov 2008 12:52:55 -0500
Try using TCP/IP instead of Named Pipes. Enable them and use a TCP/IP
address. You can also add the prefix tcp: to denote that TCP/IP should be
used and also add the port address ( ,1433 is the default port if you're not
using dynamically allocated port and the sql-server is not hidden to the
browsing service).
There is also the situation where the remote instance is not the default
instance but a named instance. In this case, you should try adding its name
after the address; such as \\RemoteServer\SQLExpress2005.
It's possible that you might be blocked by a firewall. Can you ping the
remote machine from the windows server?
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"Joe" <jbassking@xxxxxxxxxxxxxxx> wrote in message
news:%23VMwRclTJHA.1164@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
I'm having a strange problem here. I'm trying to connect to a remote SQL
Server database but I keep getting this error:
An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not open a connection
to
SQL Server)
I can connect using other machine just not the one I want to. The machine
I'm trying to connect with is a Windows 2003 Server running SQL Server
2005.
I sort of think it may be getting confused and thinks I'm trying to
connect
locally.
I even tried to connect using the SQL Server Management Studio but I get
the
same error.
I set Named Pipes to enabled in the SQL Server Config.
I posted this same message in microsoft.public.dotnet.framework.adonet
yesterday. Unfortunately I'm didn't get an answer to fix the problem.
Any ideas?
Thanks,
Joe
.
- Follow-Ups:
- References:
- Prev by Date: Cannot connect with one machine but can with others
- Next by Date: Re: Cannot connect with one machine but can with others
- Previous by thread: Cannot connect with one machine but can with others
- Next by thread: Re: Cannot connect with one machine but can with others
- Index(es):
Relevant Pages
|