Monday, May 4, 2009

If your Sqlserver gives error like "don't allow remote connections" etc….
Or error like
A connection was successfully established with the server, but then an error occurred during the login process. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.)

Main cause for this error is, you are trying to connect to remote sqlserver, but on that server, remote connections option was disabled.

Do the following to solve the problem.
Start -- All Programs -- MicrosoftSqlServer2005 -- Configuration Tools -- SqlServer Surface Area Configuration -- Surface Area Configuration for Services and Connections -- choose your server(MSSQLServer or SQLEXPRESS) -- Database Engine -- Remote Connections -- Using both TCP/IP and namedpipes, click Apply then Ok.

Note: You must restart your server after change this configuration. Go to Administration Tools -- Services -- your server (MSSQLServer or SQLEXPRESS) -- restart/start.

1 comment:

  1. Very informative this crap error comes a thousand times,also when we are configuring sql on both systems we have to make sure that the firewall is allowing these connections,sometimes the same error is due to this reason.

    Also if we want to connect to console i.e Management Studio in this case then we have to make sure that Sql Browser service is turned on and running.
    Thanks for the post.

    ReplyDelete