Trouble finding Error Code 40 or 53 in BooksOnline

When my .NET 2.0 app can't find the server, it yields a SqlException with error code 53 and a message that states SQL Server 2005 may not accept remote connections. It also has a Named Pipes Provider error numbered 40. I need to make the error message more user friendly, so I went to BooksOnline to get a complete understanding of the errors. Unfortunately, the Troubleshooting topic entitled "Errors 1-999" enumerates errors 1, 21, 102, and beyond. What happened to 40 and 53? What is the best way to look at detailed documentation for these error codes?

By the way, I'm using BooksOnline for Sql Server 2000.

[638 byte] By [flipdoubt] at [2007-12-24]
# 1
Digging further, "select * from master.dbo.sysmessages" shows the sysmessages table goes from 1 to 21 to 102 and beyond. So, I'm looking in the wrong place. Where should I look?
flipdoubt at 2007-10-8 > top of Msdn Tech,SQL Server,SQL Server Documentation...
# 2

Not all of the errors in sysmessages are in BOL. Some of them are very rare, so Microsoft spends a lot of time on the ones that happen most often or where the message text doesn't explicitly explain the problem. Having said that, as Microsoft receives errors and problems we constantly update Books Online to have not only the information about the error but causes and fixes (where possible).

40 and 53 are generic connection issues, so you'll see them a lot. Unfortunately they can be caused by everything from not typing your login properly to the server or network rejecting your connection. 40 is normally from the Named Pipes provider, so it can be a network name issue. 53 is often associated (but not always) with a port blocking issue or the server not being configured to allow remote connections.

You can find out more about both of them here:

http://blogs.msdn.com/sql_protocols/archive/2005/09/28/474698.aspx

Buck

(If this post helped you out, you can mark it as "answered")

BuckWoody at 2007-10-8 > top of Msdn Tech,SQL Server,SQL Server Documentation...

SQL Server

Site Classified