SQL Express
(1)
SQL Server
(1)
Windows XP
(1)
Firewall
(1)
Byham
(1)
Connectivity
(1)
Protocols
(1)
Warranty
(1)

SLQ Server 2008 express edition remote connectivity issue

Asked By M.K
19-Nov-09 10:37 PM
Hi,

Running SQL Server 2k8 Express Edition with Advanced Services on Windows XP
(SP3).

Everything fine is going but unable to connect remotely to SQL Server and
getting the following error message:

A network-related or instance-specific error occurred while establishing a
connection to SQL Server.
The server was not found or was not accessible.
Verify that the instance name is correct and that SQL Server is configured
to allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not open a connection to
SQL Server)


Already allowed remote connections to the server.

Anyone can help please?

Hi,In SQL Express by default remote connections are disabled. i.

Balaji replied to M.K
20-Nov-09 06:19 AM
Hi,

In SQL Express by default remote connections are disabled. i.e Named Pipes
and TCPIP protocols are disabled. If you have already enabled these
protocols make sure that your SQL Browser service is running because SQL
Express is installed as named instance and uses dynamic port each time it
starts.

Regards,
Balaji

Already enabled Named Pipes and TCIP and started SQL Browser service aswell.

M.K replied to Balaji
20-Nov-09 08:36 AM
Already enabled Named Pipes and TCIP and started SQL Browser service as
well.

Firewall?

Rick Byham, MSFT replied to M.K
20-Nov-09 11:36 AM
Firewall? Use firewall.cpl to open the UPP port 1434 for the SQL Server
Browser service.
And open the TCP port used by you instance of SQL Server. This is probably
port 1433, but Express installs using dynamic ports. This is probably only a
problem if you have another instance of SQL Server running on the computer.
--
Rick Byham, MSFT
(Implies no warranty or rights)
M.K (mianksaeed@yahoo.
Erland Sommarskog replied to M.K
22-Nov-09 02:37 PM
M.K (mianksaeed@yahoo.com) writes:

You restarted the server after enabling TCP, did not you?



--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Yes I already has restarted the machine after enabling TCP
M.K replied to Erland Sommarskog
24-Nov-09 11:54 PM
Yes I already has restarted the machine after enabling TCP
Still, check the firewall.
Rick Byham, MSFT replied to M.K
25-Nov-09 11:26 AM
Still, check the firewall.
However if you have already done that, let us check TCP connections.
On the client, can you PING the server by IP address?
Can you PING the server by name? If not, perhaps your DNS cache is stale.
ipconfig /flushdns will clear it.
On the client what are you using as your tool? Consider installing the
client tools are the client. Try connecting with sqlcmd.exe.
Check the SQL Server error log. It will list the port that SQL Server is
listening on.
Can you connect to the IP address and port, in the format
xxx.xxx.xxx.xxx,port# like 123.123.123.123,1433
--
Rick Byham, MSFT
(Implies no warranty or rights)
Post Question To EggHeadCafe