This appendix lists all the events supported by Open Data Services. Events can be activated by a SQL Server database client through calls to DB-Library functions or by a SQL Server database server that makes remote stored procedure calls as a result of a client-initiated activity. Each event is read from the network connection and extracted from the SQL Server tabular data stream (TDS).
For more information about events and event handlers, see Open Data Services Programming.
Event type | Description |
---|---|
SRV_ATTENTION | A client sends an interrupt request, or the network connection to the client is broken. |
SRV_CONNECT | A client sends a connect request. |
SRV_DISCONNECT | A client sends a disconnect request, or the Open Data Services server application calls the srv_event function to initiate a request to disconnect the current client thread. |
SRV_LANGUAGE | A client sends a SQL Server language request, or a client or a server sends the sp_sqlexec remote stored procedure request. |
SRV_RPC | A client or a server sends a remote stored procedure request. |
SRV_EXIT | The Open Data Services server application calls the srv_event or srv_setevent function to initiate a request for immediate shutdown. |
SRV_START | The Open Data Services server application calls the srv_run function to initiate server startup and to set server status. |
SRV_SLEEP | The Open Data Services server application calls the srv_setevent function to pause a started server. |
SRV_RESTART | The Open Data Services server application calls the srv_setevent function to continue a paused server. |
SRV_STOP | The Open Data Services server application calls the srv_event or srv_setevent function to initiate a request to terminate all client threads and then shut down. |