.net “的SqlError.Number是什么;“正在关闭”吗;?
我有一个SqlException堆栈跟踪“from the wild”,其中包含以下消息:.net “的SqlError.Number是什么;“正在关闭”吗;?,.net,sql-server,.net,Sql Server,我有一个SqlException堆栈跟踪“from the wild”,其中包含以下消息: SHUTDOWN is in progress. Login failed for user 'USERNAME'. A severe error occurred on the current command. The results, if any, should be discarded. 有人知道此错误的属性吗?我无法重现这种情况,以便通过调试确定它。特别是,我想知道“关机正在进行”的错误代码,
SHUTDOWN is in progress.
Login failed for user 'USERNAME'.
A severe error occurred on the current command.
The results, if any, should be discarded.
有人知道此错误的属性吗?我无法重现这种情况,以便通过调试确定它。特别是,我想知道“关机正在进行”的错误代码,但不想知道“严重错误…”的其他情况下的错误代码,它是6005:
Error Severity Event Logged Description
6005 10 No SHUTDOWN is in progress.
它返回与MSDN文档类似的数据