Regarding SQL Server network protocols

mo boy 396 Reputation points
2022-06-07T05:02:49.5+00:00

Dear Experts,

One of the SQL Server jobs keep failing intermittently with this error. The job only connects to a database within the same server.

"Executed as user: Named Pipes Provider: Could not open a connection to SQL Server. The step failed"

On checking the network configuration on server, I see it is like this

208951-image.png

However, when we check the SQL Native Client protocols, named pipes is enabled.

208907-image.png

Could you please advise what is the impact in this scenario. The job fails only sometimes but most of the time it succeeds.

Regards

SQL Server Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. CathyJi-MSFT 22,396 Reputation points Microsoft External Staff
    2022-06-07T07:15:07.117+00:00

    Hi @mo boy ,

    Please enable Named Pipes protocol for MSSQL server instance when your SQL server connection using Named Pipes protocol.

    Your SQL server instance connection succeed sometimes, the connection may use TCP/IP protocol instead of Named Pipes protocol.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    1 person found this answer helpful.

  2. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2022-06-07T21:36:55.287+00:00

    You get the error message about Named Pipes, since that is the last thing it tries. I doubt that it would help to enable Named Pipes on the server, but I would prefer to keep it disabled.

    Note that for connections on the same server, shared memory is preferred, so if both shared memory and TCP fail, named pipes are also likely to fail.

    You said that the job only makes local connections. What kind of job step is it? Have you checked for access to linked servers?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.