本文介绍了在SQL Server中检测客户端断开连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当与SQL Server的客户端连接(从客户端)断开时,如何在SQL Server(2008或2012)中检测到这种断开连接?
When a client connection with the SQL Server (from client side) is cut,how can I detecting this disconnection in SQL Server (2008 or 2012)?
我可以使用服务器触发器解决此问题吗?
Can I solve this problem with Server Triggers?
推荐答案
您可以创建 审计退出事件的事件通知.该通知可以启动已激活的过程.考虑一下事件通知是异步的.
You can create an event notification for the Audit Logout event. The notification can launch an activated procedure. Consider though that event notifications are asynchronous.
这篇关于在SQL Server中检测客户端断开连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!