IT Community - Software Programming, Web Development and Technical Support

Named Pipe errors 22 and 34 on clustered SQL 2005

This is a discussion on Named Pipe errors 22 and 34 on clustered SQL 2005 within the Database Support forums, part of the Web Development category; Named Pipe errors 22 and 34 on clustered SQL 2005 We are running a package that access MS SQL Server ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 04-15-2009, 04:38 AM
arjkhanna arjkhanna is offline
D-Web Incredible
 
Join Date: Mar 2007
Posts: 1,949
arjkhanna is on a distinguished road
Default Named Pipe errors 22 and 34 on clustered SQL 2005

Named Pipe errors 22 and 34 on clustered SQL 2005


We are running a package that access MS SQL Server 2005 using named pipes. When we run it against a single SQL 2005 server it runs without a problem. However when we try and run it against a clustered server it fails with the following errors


R NT create & X - NT error, System, Error, code = (34) STATUS_ACCESS_DENIED


This happens when it is trying to create a file on \sql\query


The named pipe service is enabled. We did find the MS KB article Error message when you connect to a cluster virtual server by using the named pipes protocol: "The machines selected for remote communication is not available at this time." which seemed to be an answer however we found that the registry already had that entry and changing it made no difference.


Any ideas on how to resolve this error will be appreciated.
__________________
A.Rajesh Khanna
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 04-15-2009, 04:40 AM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: Named Pipe errors 22 and 34 on clustered SQL 2005

Hi,


This is quite normal if your package runs under an account which does not have premission to access file share on the target machine. NP and file sharing use same protocol, It has its own authentication mechanism. If that fails, SQL connection using NP won't proceed.



You can try the same osql command on your application server under the same account that your package runs under.



Thanks.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 04-15-2009, 04:40 AM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: Named Pipe errors 22 and 34 on clustered SQL 2005

0x34= 52,

c:/> net helpmsg 52

You were not connected because a duplicate name exists on the network. Go to System in Control Panel to change the compter name and try again.



So, please check if there is duplicate machine name.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 04-15-2009, 04:44 AM
arjkhanna arjkhanna is offline
D-Web Incredible
 
Join Date: Mar 2007
Posts: 1,949
arjkhanna is on a distinguished road
Default Re: Named Pipe errors 22 and 34 on clustered SQL 2005

Thanks for the response, however in this case the response is not a network response rather it is coming from SQL Server. The full response in the SMB segment is


SMB: NT status code = 0xC0000022, Facility = System, Severity = Error, Code = (34) STATUS_ACCESS_DENIED


We can access this clustered server using ODBC, ping etc. with no issues. We can access a non-clustered SQL 2005 server without issues, this issue only appears when the application tries to access a clustered server SQL Server using named pipes (either SQL 2000 or SQL 2005).

Unfortunately this is a package so we cannot change it's access method otherwise it will already have been using ODBC
__________________
A.Rajesh Khanna
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 04-15-2009, 04:47 AM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: Named Pipe errors 22 and 34 on clustered SQL 2005

Are you able to access it using ODBC with NP protocol? try "osql -E -Snpervername\instance"

or "osql -E -S\\servername\pipe\MSSQL$INSTancename\sql\query"

If default instance. use -Snpervername or -S\\servername\pipe\sql\query.



Thanks.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 04-15-2009, 04:48 AM
arjkhanna arjkhanna is offline
D-Web Incredible
 
Join Date: Mar 2007
Posts: 1,949
arjkhanna is on a distinguished road
Default Re: Named Pipe errors 22 and 34 on clustered SQL 2005

Hi, that was very interesting. When I try and access it using



"osql -E -S\\servername\pipe\sql\query" from my desktop running Windows XP I get to the SQL server and can issue commands.



When I try running the same command from the application server on which the package runs (running Windows server 2003 SP2 I get the following response



[DBNETLIB]SQL Server does not exist or access denied.

[DBNETLIB]ConnectionOpen (Connect()).



So this may be related to the OS rather than the server? More confusion
__________________
A.Rajesh Khanna
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 04-15-2009, 04:49 AM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: Named Pipe errors 22 and 34 on clustered SQL 2005

This is quite normal if your package runs under an account which does not have premission to access file share on the target machine. NP and file sharing use same protocol, It has its own authentication mechanism. If that fails, SQL connection using NP won't proceed.



You can try the same osql command on your application server under the same account that your package runs under.



Thanks.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I run all VS Pro 2003, 2005 and 2008 as clients with VS Team System 2005? shaalini Server Management 1 05-08-2009 03:08 AM
SQL Server 2005: Backward Compaibility Errors arjkhanna Database Support 3 04-15-2009 05:10 AM
Windows Code named VIENNA prasannavigneshr Technology BUZZzzzzz 30 08-29-2007 07:29 AM
I Cannot access SQL 2005 integrated services after installing SQL-2005..? theone Database Support 1 07-27-2007 12:12 AM
What is clustered index and non-clustered index? How many clustered indexes and non-c Arun VB.NET Programming 1 07-19-2007 04:41 AM


All times are GMT -7. The time now is 10:05 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0