Link to home
Start Free TrialLog in
Avatar of Agrippa
AgrippaFlag for Netherlands

asked on

SQL 2005: No process is on the other end of the pipe

OS: Microsoft Windows Small Business Server 2008 SP1
SQL Server 2005 Express Edition

When i use the SQL Server Management Studio to connect to the local SBSMONITORING server i get the following error:

Login Error
A connection was successfully established with the server, but then an error ocurred during the pre-login handshake.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow connections. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.)(Microsoft SQL Server, Error: 233)

I tried http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277 with no success.

In the SQL Server Surface Area Configuration tool i enabled both TCP and named pipe connections with no success.

I started and restarted all SQL services with the SQL Server Configuration Manager.
Rebooted server, same results.

Tried to repair the SQL installation, no improvement.

I even installed a parallel server with the exact same installation options, and compared the configuration, no special differences. The parallel server works fine!
Avatar of Raja Jegan R
Raja Jegan R
Flag of India image

Kindly check for the following in Surface Area Configuration:

1. Remote connections are allowed or not.
2. Both TCP and Named pipes are enabled or not.

I believe you should have disabled Remote Connections.

Have you added an exception for the TCP port 1433 in Windows Firewall.
if you have done the above, then try to ...

start sql management studio,  
when you start a new connection, type your server name and in the same dialog box, select the option button.
This will bring the connection properties tab,
under "network protocol" select TCP/ip {click ok}
if that last step failes, select named pipes and try and then shared mem and then try



Avatar of Agrippa

ASKER

Both TCP/IP and Named pipes are enabled.
As for "Shared Memory": The checkbox is checked.

The priority is as follows:
1. Shared Memory
2. TCP/IP
3. named pipes

If i try to connect with options... and force connection with named pipes it fails with the same error.
TCP/IP fails with another 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server)

The "encrypt connection" checkbox in unchecked, and force encryption is disabled in the configuration manager.
Enabling this has no effect.

I disabled Windows Firewall completely and tried again... sadly this doesn't make a difference.
I created a netstat report (included), but i couldn't find an entry with listening TCP port 1433.

For completeness sake, the SBSMONITORING service startup parameters as specified in the configuration manager:
-dC:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf;-eC:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG;-lC:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf;T7608

Also, I discovered some strange things in the logfile (see code snippet).
2009-02-05 01:38:55.65 Server      Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\SBSMONITORING ].
2009-02-05 01:38:55.65 Server      Server named pipe provider is ready to accept connection on [ \\.\pipe\MSSQL$SBSMONITORING\sql\query ].
2009-02-05 01:38:55.65 Server      Dedicated administrator connection support was not started because it is not available on this edition of SQL Server. This is an informational message only. No user action is required.
2009-02-05 01:38:55.65 spid8s      Starting up database 'tempdb'.
2009-02-05 01:38:55.82 Logon       Error: 17187, Severity: 16, State: 1.
2009-02-05 01:38:55.82 Logon       SQL Server is not ready to accept new client connections. Wait a few minutes before trying again. If you have access to the error log, look for the informational message that indicates that SQL Server is ready before trying to connect again.  [CLIENT: <local machine>]
2009-02-05 01:38:55.82 Logon       Error: 17187, Severity: 16, State: 1.
2009-02-05 01:38:55.82 Logon       SQL Server is not ready to accept new client connections. Wait a few minutes before trying again. If you have access to the error log, look for the informational message that indicates that SQL Server is ready before trying to connect again.  [CLIENT: <local machine>]
2009-02-05 01:38:55.84 spid11s     The Service Broker protocol transport is disabled or not configured.
2009-02-05 01:38:55.85 spid11s     The Database Mirroring protocol transport is disabled or not configured.

Open in new window

netstat.txt
Kindly add an exception for the port 1433 in Windows Firewall.

In Surface Area configuration Manager, enable remote connections and both TCP/IP and Named pipes are selected in it.

Kindly execute this in your query analyzer

sp_readerrorlog

You will be able to see something like Server is listening on this port No..XX
Try connecting the server using ip:xx and you should be able to connect your server.
Avatar of Agrippa

ASKER

I did both of them, but this doesn't help...
It still complains about "no process on the other end of the pipe"...
I tried "telnet localhost 1433" but the connection failed.

I can't find a query analyser or something similar, could you tell me where to find it please?

(Downloading SQL 2005 SP3, maybe (re-)installing this will change anything)
ASKER CERTIFIED SOLUTION
Avatar of Raja Jegan R
Raja Jegan R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Agrippa

ASKER

The solution was in the link, I had to tell the SQL Server what certificate to work with... Even when i disabled encryption the sql server needed it to start.
Avatar of Agrippa

ASKER

Thanks for your help!