Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting disconnection of the client in SQL Server

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?

like image 786
Mohamad Avatar asked Jun 23 '12 10:06

Mohamad


1 Answers

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.

like image 138
Remus Rusanu Avatar answered Sep 30 '22 16:09

Remus Rusanu