Groups | Blog | Home
all groups > sql server connect > april 2007 >

sql server connect : Shared Memory Provider error


UWide User
4/23/2007 3:14:03 PM
I am having a problem logging in with the "SA" account on a SQL Server 2005
Express server (latest service pack). Here is the error message:

"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)"

I hvae Googled this and checked what was recommended; TCP/IP enabled, Mixed
mode authentication enable, SA account access enabled. Nothing seems to fix
this problem. the server OS is Windows 2003 Standard with SP1. Windows
authentication is working, but the database server is setup for a particular
application using SA.

Any help would be greatly appreciated.

-----------
Andrew J. Kelly
4/23/2007 6:24:13 PM
Is shared memory enabled in the "Surface Area Configuration Utility"?

--
Andrew J. Kelly SQL MVP

[quoted text, click to view]

v-adamqu NO[at]SPAM online.microsoft.com
4/24/2007 12:00:00 AM
Hello,

Thank you for posting here.

From the problem description of the post you submitted, my understanding
is: the following error message is received when attempting to log in with
the "SA" account on a SQL Server 2005 Express Server.

"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)"

As I understand, you have checked the TCP/IP, Mixed mode authentication, SA
account access but the issue still persists and the Windows authentication
is working. If I have misunderstood about your concern, feel free to let me
know.

Before going further, as you have mentioned that "TCP/IP" is enabled in SQL
Server Configuration Manager tool, I would like to confirm whether the
"Shared Memory" and "Named Pipes" are all enabled as well and "TCP/IP" is
enabled to listen on all IP Addresses.

In addition, I also suggest we manually check the SQL ERRORLOG (the default
path is C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\) to make
sure "Shard Memory" is actually enabled though it have been configured via
Surface Area configuration or SQL configuration manager. If the settings
have already been set to this, please go ahead and then refer to the
following troubleshooting information.

Based on my research and experience, this behavior can also occur when the
server is not configured to accept remote connections. By default, SQL
Server 2005 Express Edition and SQL Server 2005 Developer Edition do not
allow remote connections. At this point, I suggest we

Suggestion 1: Configure the SQL Server 2005 to allow remote connections
====================================================
To configure SQL Server 2005 to allow remote connections, complete all the
following steps:

1. Enable remote connections on the instance of SQL Server.
2. Turn on the SQL Server Browser service.
3. Configure the firewall to allow the relevant network traffic.

This article describes how to complete each of these steps.

How to configure SQL Server 2005 to allow remote connections
http://support.microsoft.com/kb/914277

For more information regarding this error, please visit the following
address in SQL Server 2005 BOOK Online
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/sqlerrm9/html/201665dc-7ac8-4c19-90d3-
33354c5caa72.htm

However, if this issue still persists, let's try LPC for shared memory
connection and TCP for TCP connection by using sqlcmd.

Suggestion 2: Try the LPC for shared memory connection and TCP for TCP
connection by using sqlcmd.
=========================
1. Click Start, click Run, type cmd, and then click OK
2. At the command prompt, type the following command, and then press ENTER.


sqlcmd -S lpc:<computer name>
sqlcmd -S tcp:<computer name>,<port number>

3. Please check if we can successfully connect to the instance of SQL
Server 2005 by using sqlcmd

For more information regarding the sqlcmd, please visit the following link
in the SQL Server 2005 BookOnline

How to: Connect to the Database Engine Using sqlcmd.exe
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/74b0fb71-7f8e-4171-9431-d075
28532524.htm

Please let me know the results at your earliest convenience. If anything is
unclear in my reply, please don't hesitate to let me know and I will be
glad to help. Thank you for your efforts and time.

Have a nice day!

Best regards,

Adams Qu, MCSE 2000, MCDBA
Microsoft Online Support

Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| Thread-Topic: Shared Memory Provider error
| thread-index: AceF9LOsaQZoVpacTUOkK5iSW/HguQ==
| X-WBNR-Posting-Host: 136.223.19.49
| From: =?Utf-8?B?VVdpZGUgVXNlcg==?= <iseek2no@nospam.postalias>
| Subject: Shared Memory Provider error
| Date: Mon, 23 Apr 2007 15:14:03 -0700
| Lines: 18
| Message-ID: <6C07D6DF-8001-4CB5-A024-8AFE8E3D700B@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757
| Newsgroups: microsoft.public.sqlserver.connect
| Path: TK2MSFTNGHUB02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.sqlserver.connect:894
| NNTP-Posting-Host: tk2msftsbfm01.phx.gbl 10.40.244.148
| X-Tomcat-NG: microsoft.public.sqlserver.connect
|
| I am having a problem logging in with the "SA" account on a SQL Server
2005
| Express server (latest service pack). Here is the error message:
|
| "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)"
|
| I hvae Googled this and checked what was recommended; TCP/IP enabled,
Mixed
| mode authentication enable, SA account access enabled. Nothing seems to
fix
| this problem. the server OS is Windows 2003 Standard with SP1. Windows
| authentication is working, but the database server is setup for a
particular
| application using SA.
|
| Any help would be greatly appreciated.
|
| -----------
| Anyone who knows everything, leads a pretty boring life
|
UWide User
4/24/2007 3:08:01 AM
Thank you for your reply Adams! I tried the lpc sqlcmd and indeed got an error:

"HResult 0x7E, Level 16, State 1
Shared Memory Provider: The Shared Memory dll used to connect to SQL Server
2000
was not found [126].
Sqlcmd: Error: Microsoft SQL Native Client :
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..
Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
"

When running the tcp sqlcmd however, I connected ok and got a 1> prompt.
Shared Memory is enabled according to the configuration utility. I am no DBA
so hopefully this sheds some light on the situation and you can help me
further. Thank you.

-----------
Anyone who knows everything, leads a pretty boring life


[quoted text, click to view]
v-adamqu NO[at]SPAM online.microsoft.com
4/25/2007 12:00:00 AM
Hello,

Thank you for your quick response.

From your response, I understand that we can successfully connect to the
SQL Server database using the "TCP sqlcmd" command but the error occurs
when we try to connect by the "sqlcmd -S lpc" command. In addition, the
Shared Memory is enabled in the SQL Server Configuration Manager. Thank you
for your time and efforts on this issue and I will continue to assistant
you.

According to the previous troubleshooting information, we can conclude that
the problem is closely related to the Shared Memory protocol. In order to
ensure the current status as well as to eliminate the possible causes, I
would like you to help me gather the following information so that I can
perform further research for you. Thank you for your cooperation on this.

Gather the ERROR LOG
=========================
1. Please navigate to the following directory:

C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\

NOTE: I assume that the SQL Server is installed on the default path. If
not, please modify the path accordingly.

2. Please send the all the "ERRORLOG" log files (include ERRORLOG.1,
ERRORLOG.2, etc) to me at v-adamqu@microsoft.com

Thank you for your cooperation. Once I obtain the information, I will
perform further research and get back to you. If there is anything unclear,
please feel free to let me know. It¡¯s always my pleasure to be of
assistance.

Have a nice day!

Best regards,

Adams Qu, MCSE 2000, MCDBA
Microsoft Online Support

Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| Thread-Topic: Shared Memory Provider error
| thread-index: AceGWHDAGB3GLZvVTYa6MenVF1Fp9w==
| X-WBNR-Posting-Host: 136.223.19.49
| From: =?Utf-8?B?VVdpZGUgVXNlcg==?= <iseek2no@nospam.postalias>
| References: <6C07D6DF-8001-4CB5-A024-8AFE8E3D700B@microsoft.com>
<9sKmU5jhHHA.4332@TK2MSFTNGHUB02.phx.gbl>
| Subject: RE: Shared Memory Provider error
| Date: Tue, 24 Apr 2007 03:08:01 -0700
| Lines: 172
| Message-ID: <78265311-7F98-4B17-834A-1C8644482C88@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757
| Newsgroups: microsoft.public.sqlserver.connect
| Path: TK2MSFTNGHUB02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.sqlserver.connect:901
| NNTP-Posting-Host: tk2msftsbfm01.phx.gbl 10.40.244.148
| X-Tomcat-NG: microsoft.public.sqlserver.connect
|
| Thank you for your reply Adams! I tried the lpc sqlcmd and indeed got an
error:
|
| "HResult 0x7E, Level 16, State 1
| Shared Memory Provider: The Shared Memory dll used to connect to SQL
Server
| 2000
| was not found [126].
| Sqlcmd: Error: Microsoft SQL Native Client :
| 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..
| Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
| "
|
| When running the tcp sqlcmd however, I connected ok and got a 1> prompt.
| Shared Memory is enabled according to the configuration utility. I am no
DBA
| so hopefully this sheds some light on the situation and you can help me
| further. Thank you.
|
| -----------
| Anyone who knows everything, leads a pretty boring life
|
|
v-adamqu NO[at]SPAM online.microsoft.com
4/30/2007 1:50:21 AM
Hello,

I would like to check how things are going. Did you have the chance to
collect the requested information? If you have any other questions, please
do not hesitate to let me know. I look forward to future updates.

Have a nice day!

Best regards,

Adams Qu, MCSE 2000, MCDBA
Microsoft Online Support

Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.





--------------------
| X-Tomcat-ID: 119740595
| References: <6C07D6DF-8001-4CB5-A024-8AFE8E3D700B@microsoft.com>
<9sKmU5jhHHA.4332@TK2MSFTNGHUB02.phx.gbl>
<78265311-7F98-4B17-834A-1C8644482C88@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: v-adamqu@online.microsoft.com (Adams Qu [MSFT])
| Organization: Microsoft
| Date: Wed, 25 Apr 2007 07:00:12 GMT
| Subject: RE: Shared Memory Provider error
| X-Tomcat-NG: microsoft.public.sqlserver.connect
| Message-ID: <4OYohdwhHHA.2164@TK2MSFTNGHUB02.phx.gbl>
| Newsgroups: microsoft.public.sqlserver.connect
| Lines: 100
| Path: TK2MSFTNGHUB02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.sqlserver.connect:910
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hello,
|
| Thank you for your quick response.
|
| From your response, I understand that we can successfully connect to the
| SQL Server database using the "TCP sqlcmd" command but the error occurs
| when we try to connect by the "sqlcmd -S lpc" command. In addition, the
| Shared Memory is enabled in the SQL Server Configuration Manager. Thank
you
| for your time and efforts on this issue and I will continue to assistant
| you.
|
| According to the previous troubleshooting information, we can conclude
that
| the problem is closely related to the Shared Memory protocol. In order to
| ensure the current status as well as to eliminate the possible causes, I
| would like you to help me gather the following information so that I can
| perform further research for you. Thank you for your cooperation on this.
|
| Gather the ERROR LOG
| =========================
| 1. Please navigate to the following directory:
|
| C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\
|
| NOTE: I assume that the SQL Server is installed on the default path. If
| not, please modify the path accordingly.
|
| 2. Please send the all the "ERRORLOG" log files (include ERRORLOG.1,
| ERRORLOG.2, etc) to me at v-adamqu@microsoft.com
|
| Thank you for your cooperation. Once I obtain the information, I will
| perform further research and get back to you. If there is anything
unclear,
| please feel free to let me know. It¡¯s always my pleasure to be of
| assistance.
|
| Have a nice day!
|
| Best regards,
|
| Adams Qu, MCSE 2000, MCDBA
| Microsoft Online Support
|
| Microsoft Global Technical Support Center
|
| Get Secure! - www.microsoft.com/security
| =====================================================
| When responding to posts, please "Reply to Group" via your newsreader so
| that others may learn and benefit from your issue.
| =====================================================
| This posting is provided "AS IS" with no warranties, and confers no
rights.
|
| --------------------
| | Thread-Topic: Shared Memory Provider error
| | thread-index: AceGWHDAGB3GLZvVTYa6MenVF1Fp9w==
| | X-WBNR-Posting-Host: 136.223.19.49
| | From: =?Utf-8?B?VVdpZGUgVXNlcg==?= <iseek2no@nospam.postalias>
| | References: <6C07D6DF-8001-4CB5-A024-8AFE8E3D700B@microsoft.com>
| <9sKmU5jhHHA.4332@TK2MSFTNGHUB02.phx.gbl>
| | Subject: RE: Shared Memory Provider error
| | Date: Tue, 24 Apr 2007 03:08:01 -0700
| | Lines: 172
| | Message-ID: <78265311-7F98-4B17-834A-1C8644482C88@microsoft.com>
| | MIME-Version: 1.0
| | Content-Type: text/plain;
| | charset="Utf-8"
| | Content-Transfer-Encoding: 7bit
| | X-Newsreader: Microsoft CDO for Windows 2000
| | Content-Class: urn:content-classes:message
| | Importance: normal
| | Priority: normal
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757
| | Newsgroups: microsoft.public.sqlserver.connect
| | Path: TK2MSFTNGHUB02.phx.gbl
| | Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.sqlserver.connect:901
| | NNTP-Posting-Host: tk2msftsbfm01.phx.gbl 10.40.244.148
| | X-Tomcat-NG: microsoft.public.sqlserver.connect
| |
| | Thank you for your reply Adams! I tried the lpc sqlcmd and indeed got
an
| error:
| |
| | "HResult 0x7E, Level 16, State 1
| | Shared Memory Provider: The Shared Memory dll used to connect to SQL
| Server
| | 2000
| | was not found [126].
| | Sqlcmd: Error: Microsoft SQL Native Client :
| | 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..
| | Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
| | "
| |
| | When running the tcp sqlcmd however, I connected ok and got a 1>
prompt.
| | Shared Memory is enabled according to the configuration utility. I am
no
| DBA
| | so hopefully this sheds some light on the situation and you can help me
| | further. Thank you.
| |
| | -----------
| | Anyone who knows everything, leads a pretty boring life
| |
| |
|
|
AddThis Social Bookmark Button