What are the most common/useful SqlException numbers? I don't need the entire sysmessages table, just the typical or common errors you're likely to see in a data access layer so I can do sometihng like:
switch (exception.Number)
{
case (2):
case(53):
_error = DataAccessErrorType.NetworkAddressNotFound;
break;
case(4060):
_error = DataAccessErrorType.InvalidDatabase;
break;
case (18452):
case (18456):
_error = DataAccessErrorType.LoginFailed;
break;
case (10054):
_error = DataAccessErrorType.ConnectionRefused;
break;
case (547):
case (2627):
case (2601):
_error = DataAccessErrorType.SqlError;
break;
default:
break;
}