SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Named Pipes vs TCP - Connection Errors

Named Pipes vs TCP - Connection Errors

Mr or Mrs. 500
Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)

Group: General Forum Members
Points: 508 Visits: 910

A bit of a strange one....and i swear this is a networking issue somewhere....but according to the networks team they cannot find anything.

Wanted to know if anyone here can think of something to check and why the temporary workaround works!!


We have a satellite office, connected by a high-speed dedicated link (not VPN) back to our corporate network. In this office are a couple of user PC's which use Crystal Reports to access a SQL database held in the datacentre. They have been experiencing issues with both Crystal Reports and using SSMS, and have been getting the error:

Error Number:121 Error Message:TCP Provider: The semaphore time-out period has expired.

This will happen the second time they run the report or associated select query from SSMS....the first time it always works. If i log off and back on again it will also work....but any subsequent attempt fails.

Through some investigation we found that this is the only occurence of this error so cannot be related to the database server itself. Moving the users PC into the main office (different subnet) resolves the issue. Moving an already working PC from the main office to the satellite office causes the issue to appear on that machine also.

The workaround i found was to change the connection string to use Named Pipes. This allows the query and Crystal Reports to run successfully every time. I know it misses out the network stack (TCP) by using named pipes but for the life of me i cannot figure out exactly why this would work every time if there was a genuine network issue.

All the forums on the internet and here just point people to the Microsoft networking investigation article. I have checked a number of the settings (TCP offload, TCP Chimney etc) and they are all disabled on the SQL Server. They are active on the user desktop though....but then again they are active on my desktop and i experience no issues.

Without something definitive to help me explain to the networks team why the named pipes connection always works and why it is an intermittent issue....they will not help me!

Many thanks


You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum