SQL Server Developer Center > SQL Server Forums > SQL Server Database Engine > Connection Error: (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.
Ask a questionAsk a question
 

Proposed AnswerConnection Error: (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.

  • Wednesday, December 14, 2005 6:06 PMStephK Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello,

    Please bear with me as I am no Sql Server guru, but am getting this error that is preventing me from continuing with my development work.  I am the only developer on my team running Sql Server 2005 and it has been working just fine for the last week.  I opened the Management Studio this morning, just like every other morning and got this error:

    TITLE: Connect to Server
    ------------------------------

    Cannot connect to (local).

    ------------------------------
    ADDITIONAL INFORMATION:

    A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233)

    Of course the help page says no help is available.  I have googled myself sick and still have not found a way so resolve this...has anyone else had this error and/or a fix?  I am using XP Pro SP2...any help would be greatly appreciated!

    Thanks!
    Steph

All Replies

  • Saturday, December 17, 2005 1:02 AMPeter Gvozdjak - MSFTMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    This error usually indicates that the server closed the connection, e.g. during login verification. 

    The best is to check for any messages from SQL Server correlated to the time of the failure - either in the Application EventLog or in the ERRORLOG file (by default located in the C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG directory).  There is a chance they provide more information to identify the root cause of the failure. 

     

     

  • Sunday, December 25, 2005 4:41 PMHardy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Did not see any weird error message may cause this problem.
  • Wednesday, December 28, 2005 3:54 AMbrokenrulz Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Try and connecting to the SQL Server box using the DAC (Dedicated Admin Connection) e.g if your server name is "SERVER" enter "ADMIN:Server" in Server name and click connect.
  • Thursday, January 05, 2006 4:08 AMLaneH Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer

    Not sure if you have resolved this or not.  I had the same error trying to connect to a new SQL Server 2005 installation with the management studio from a remote machine and discovered that the named pipes protocol was diasabled in the SQL Server network configuration protocols.  I enabled it and restarted SQL Server and the problem was resolved.

    Good Luck

    Lane

    • Proposed As Answer byR_2 Monday, March 16, 2009 12:53 PM
    •  
  • Wednesday, March 01, 2006 11:02 AMbizl Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    I checked the SQL Server log (message 2 above) and realised there were too many connections opened. The error description was verbose. Closed them and it worked.

    Cheers

     

  • Wednesday, May 10, 2006 5:51 AMking kailas Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    yaah!!!! i have done same and it worked.. but after opening 5 or 6 connection, m getting the same error message again.....

     

     

    Cheers!!

  • Tuesday, August 01, 2006 5:45 PMMike Wentzel Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Another mistake that can cause this error is incorrect credentials in a connection string.
  • Monday, August 07, 2006 1:20 PMPabloL Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    execute sp_configure and increment the conexion

  • Friday, August 25, 2006 11:37 PMJinTao Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    reboot your db server...
  • Tuesday, September 12, 2006 4:13 PMfewfewfew Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    The reason this message appears is because of the web.config connectionString. Rather than using the default authentication details of Integrated Security=True:

    connectionString="Data Source=STL-COPELAND\SQLSERVER2005;Initial Catalog=RJ;Integrated Security=True"

    Use "User ID=sa Password=test"  for example in the connection string:

    connectionString="Data Source=STL-COPELAND\SQLSERVER2005;Initial Catalog=RJ;User ID=sa Password=test"

    Rod Copeland

     

     

  • Friday, October 13, 2006 2:33 PMBSautner Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I spent a couple hourse working on this issue until i realised my SQL Server Agent Was stopped. It wasn't set to auto start to reboots didn't help. Oddly all my win32 apps would work fine and asp.net apps running from other machines could get the SQL data but a asp.net 2.0 app running off localhost would throw this error.

    Ben

  • Thursday, November 09, 2006 8:41 AMAlexcl Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I enable the Protocols "Named Pipes" and it works.

    Thanks Lane.

     

  • Sunday, December 31, 2006 1:07 AMOmLeD Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    After a while like 5 hours that I tried to solve this problem Thanks Lane I found your post... & Now it works
  • Monday, February 05, 2007 2:30 PMS_Gibson Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I received this error after dropping connections while detaching a database. I restarted the SQL server service as well as agent and IIS. nothing seemed to fix it. I then logged into SQL Server under another admin login. I looked at the properties under my usual login and found that the default database was not set, which seemed strange. I reset the default database and logged back in under my account. Not quite sure what SQL Server did, but now it's fixed.
  • Thursday, February 15, 2007 11:15 AMicbob99 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi!

    I experience same error message.
    I have an asp application that works with a DB. The database is mirrored. At the beginning the database worked with windows authentication. Also IIS paths requests from the application with specially created user. The user was also added to the DB (in login and users). My connectionStrings element in the application was configured to work with SSPI.
    Now I need to did a next change: I want to work with sql authentication. Do do it I create new login and user that works with  the DB. I also  change connectionStrings to add user and password and remove  SSPI.
    Now I run the application. It works perfect, but if I do a failover between mirrored DBs I've go next error:
    "A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)"

    Now if I run create of login and user for the DB. And than I run application once again it works well.

    Any help?
  • Thursday, February 22, 2007 10:54 PMMonique Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    I'm having the same problem.  The Named Pipes support is disabled, but when I enable it, I get a timeout error.  Has anyone any idea about what may be happening?

    Thanks in advance,

    Monique

  • Monday, May 21, 2007 12:02 PMAhmed Ibrahim Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    thanks it works when enable "namedPipes" protocols

     

  • Tuesday, May 29, 2007 8:23 PMJolly BZach Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Open the SQL Server Configuration Manager. Expand the Network configuration and enable the Shared Memory and Named Pipes, see to it the other 2 protocols TCP/IP and VIA are disabled. The same is to be done in Client configuration in client protocol section.

    I was getting the same error and i tried this and the error went off. Hope this helps.

     

    Regards

    Jolly bzach

  • Thursday, August 09, 2007 7:55 AMsuek2k2 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    i have this same problem

    when the name pipes was enable thwe connection is timeout

     

     

    any one could help???

     

     

  • Thursday, August 23, 2007 10:24 PMAji K Jose Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Disable Shared memory protocol and try !....

     

  • Wednesday, September 12, 2007 5:03 PMjajk Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    One of the most common reasons for this error is that SQL authentication is not enabled on the instance that you are logging into. Enable Sql Authentication, Restart the Instance and it should go away!

     

  • Thursday, October 11, 2007 6:18 PMGdragon Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    Check your SQL Native Client Configuration in Computer Management. Check to see if there are any Aliases under Client Protocols. If there are Aliases with the name of the SQL server you try to connect, delete them. It works.
  • Thursday, November 15, 2007 8:27 PMPhillip Rey Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    -------------------------------

    ASP.Net 2.0 Application

    SQL Server 2005

    Clients have a mix of IE6 and IE6

    -------------------------------

     

    My users reported this error. I checked the Event Log on the server and it gave the following message:

     

    Could not connect because the maximum number of '5' user connections has already been reached. The system administrator can use sp_configure to increase the maximum value. The connection has been closed. [CLIENT: <local machine>]

     

    The ASP.Net application gave this error message in IE:

     

    A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

     

    I had everyone disconnect so I could, then ran this statement in SQL Server Mgmt Studio:

     

    sp_configure 'user connections', 25

    reconfigure with override

     

  • Tuesday, January 08, 2008 4:03 PMRyan Augustine Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    My issue was with the connection strings was limited.  Try connecting with only one query (be sure to disconnect from all other connections to the SQL server), then run the following script:

     

    EXEC sys.sp_configure N'show advanced options', N'1' RECONFIGURE WITH OVERRIDE

    GO

    EXEC sys.sp_configure N'user connections', N'0'

    GO

    RECONFIGURE WITH OVERRIDE

    GO

    EXEC sys.sp_configure N'show advanced options', N'0' RECONFIGURE WITH OVERRIDE

    GO

     

    The problim seems to have multipule causes, but one of the causes is that a limited number of connections to the SQL database has been set.  This script will set it back to 0 which is unlimited.  This setting can be found by right clicking on the server the click Properties - Connections.  This script will allow you to reset that setting even if you can't get that far through the Object Explorer. 

     

    * Note: Be sure to disconnect from the server in Object Explore so you can run this script.

  • Friday, January 11, 2008 3:19 PMicmay Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Could you please share the steps you did to enable "named pipes protocol in SQL Server network configuration protocols?"

    Thanks!

  • Friday, January 11, 2008 3:34 PMicmay Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I found how to enable the NP but got the new error message:

    Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452)

  • Friday, February 22, 2008 7:07 PMNicholas_1969 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    Ryan - Thanks for the script and instructions on resetting connections back to "0" - but remember that you need to restart SQL services for it to take efffect. 

     

    It worked for me!  Thanks!

     

  • Wednesday, March 05, 2008 7:33 PMDarth Stix Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I'm new to the forum, but i found a way to actually see the connections.  In SQL Managment Studio under the database server name expand the management tree and open the Activey Monitor.  It will then display the active connections.  I was having the same problem during development testing and sure enough i was trying to open more than 10 connections.

  • Friday, March 21, 2008 4:45 PMMC101 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    How was the named pipes enabled. Was this through the connect string code or is this a setting in SQLExpress

  • Saturday, July 19, 2008 7:54 PMaazapf Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    goto sql server configuration manager.  it's under SQL server2005 Network configuration- protocols for (your sqlengine)

  • Thursday, July 24, 2008 10:44 AMEvgeniy Baryshnikov Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I had the same problem. I try to connect to SQL server using "Management Studio Express" from another computer.
    So i solved the problem. Here are steps:


    1) Start->Programs-> Microsoft SQL Server 2005 -> Configuration Tools-> SQL Server Surface Area Configuration
    2) Run "Surface Area Configuration for Services and Conections"
    3) In the tree Select "Remote Connections" and then select "Using named pipes only".
    4) Look at Start->Programs-> Microsoft SQL Server 2005 -> Configuration Tools->SQL Server Configuration Manager
    5) In the tree select "SQL Server 2005 Network Configuration->Protocols for SQL..." All protocols must be Disabled, but Named Pipes -- Enabled.

    Don't forget to restart server.
  • Thursday, July 31, 2008 1:29 AMdarren_hodder Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I found using SQL Server Management Studio Express that my newly installed SQL server was set to Windows Authentication only, so I set it to both Windows Authentication and SQL login.

     

  • Tuesday, October 07, 2008 11:45 AMshankatp77 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    After restarting the services, able to connect the SQL server from Client machines. thanks

  • Friday, November 21, 2008 5:01 PMsmithers Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    This issue was posted long time ago, and many people replied with their own solutions including connection strings of the apps. This is my case and I think Steph experienced exactly same as mine.

     

    My ASP.Net app can connect and access to the database, but Management Studio gives the error expained by Steph. My solution was...

     

    Start>SQL Server 2005>Configuration Tools>Surface Area Configuration>Add New Administrator

    Then add available privileges.

     

    HTH

     

  • Tuesday, November 25, 2008 4:46 AMbeautifullife Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have the same errror. I try to change the connectionString: ...Data Source=localhost --> Data Source=MAY01\SQLEXPRESS and it work. Wink
  • Thursday, March 12, 2009 4:22 PMkyobanim Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I had an error that is related to this thread.

    Microsoft SQL Server 2005 -- Error 29515. SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][SQL Native Client]Shared Memory Provider: No process is on the other end of the pipe.

    Here is what led to the error: I had installed SQL2005 and SharePoint on a box for testing purposes. Everything went in fine and configured correctly as well as setup initial site.  After this was done I installed visual studio 2008 and called it a day.

    Came back on monday and attempted to connect to the Sharepoint central administration site and got a database not found error. No matter what I did I could not connect to it. So I uninstalled SQL and sharepoint, cleaned everything up and reinstalled.  That is when the Error 29515 first appeared.  I found this thread and tried everything listed here but nothing worked.

    Fast forward ahead 3 days . . . I was to the point of reloading Server and starting from scratch but decided to try one more install.  This time I created a new user account on the server and installed using this account.

    The SOB worked.  Not saying that this will solve all problems but it worked for me and is a quick fix to try.  I still have no idea why the error started but I suspect it had something to do with the initial install of visual studio and the sql express that comes with it.
  • Thursday, April 16, 2009 9:18 AMMr Rush Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thank you very much.  Your advice worked well.
  • Wednesday, July 22, 2009 5:05 PMRadha G Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Yea I got this error...and in the event log it said that my server was only configured for  Windows authentication.
    So I logged in via Windows Auth and set the server properties to allow both SQL and Windows auth and also set the primary database for the sql user in the user properties..changed it from master. restarted sql services and things worked.
  • Thursday, August 13, 2009 5:14 PMalbin gorkhali Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have the similiar kinda of issue. but when i look into Log directory..this is what it says


    Logon       Could not connect because the maximum number of '1' user connections has already been reached. The system administrator can use sp_configure to increase the maximum value. The connection has been closed.



    whats the procedure of using sp_configure.

    thanks
    Albin

    albingorkhali
  • Friday, November 06, 2009 9:35 AMtadewusi Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    My own issue is not similar to those mentioned in this forum.

    I have got some SSIS packages stored in MSDB database. Exporting some of them gives this type of error message.

    Communication link failure Shared Memory Provider: No process is on the other end of the pipe. (Microsoft SQL Native Client)

    Disabling Shared Memory Protocol and exporting the package again reports error on the other protocols (TCP and Named Pipe) depending on which of them at the top of priority list.

    I have had a look at the server and client protocols configurations. These settings seems to be working fine. I even had to disable and reorder them but the error still persists.
    The irony of it is that the error is not coming up on all the packages.
    I have restarted the engine and looked at the error log.

    The log reports are as follows:

    SQL Server is now ready for client connections. This is an informational message; no user action is required. Server is listening on [ 127.0.0.1 <ipv4> 1434]. Server named pipe provider is ready to accept connection on [ \\.\pipe\sql\query ]. Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\MSSQLSERVER ]. Server is listening on [ 'any' <ipv4> 1433].

    I'm suspecting these packages but they are running fine without any errors.
    There is no certificate installed on the box.

    Does anyone have a clue why this is happening?

    One more thing the server configs are:
    Win 2003 SP1, SQL 2005 RTM.

    I'm not suspecting SQL service pack since the issues are not occurring on production with the same configurations. I'm planning to apply SP3 on the box though.