If error is larger than 50000, make sure the user-defined message
Error codes > 50000 are raised by your own SQL code, not by the database engine. So review your code, why it raises the error.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Team,
We are getting this error in SQL Server 2016 (SP3-CU1)
Error 50001, severity 11, state 1 was raised, but no message with that error number was found in sys.messages. If error is larger than 50000, make sure the user-defined message is added using sp_addmessage. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
If error is larger than 50000, make sure the user-defined message
Error codes > 50000 are raised by your own SQL code, not by the database engine. So review your code, why it raises the error.
Since this error appears to happen on connection, one could suspect that there is a LOGON trigger that raises error 50001 for some reason.