我構建了一個與SQL Server連接的VB .NET應用程序。在應用程序運行時,Windows操作系統更改爲睡眠模式。我再次打開機器後,發現此錯誤:運輸級錯誤:SQL Server在Windows睡眠模式下丟失連接(由遠程主機強行關閉)
A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
連接的狀態仍然打開,但它不再有效。我從MSDN讀了一些資源表示SPID已經終止(?)。
在Windows操作系統睡眠後可以再次使用此連接嗎?
如果沒有,我可以決定終止正在運行的應用程序..