Where can I find a list of error codes and its messages for C #, Sql server?

How can I find a list of error codes for sql server, socket exceptions, web exceptions, or any exception.

For sql server I cannot find all error codes in sysmessages, for example, for example, error code 53, 17, so where do we find such codes?

For example, System.Net.Sockets.SocketEocketError sockererror is an enum that contains most socket errors, is there something similar to this for sqlclient so that we can capture sql server errors?

+3
source share
3 answers

SQL-Server, , , MSDN, , ?

SELECT * FROM sysmessages

afaik , MS SQL Server...

+2

, , SockException , Winsock2.h

Socket Windows Sockets MSDN: http://msdn.microsoft.com/en-us/library/ms740668(VS.85).aspx

0

Source: https://habr.com/ru/post/1719288/


All Articles