Error and Message Handling

Function/Macro Description
srv_errhandle Installs a programmer-supplied error handler for an Open Data Services server application.
SRV_IODEAD Determines whether an input and output connection to a client is open.
srv_log Writes a message to the Open Data Services log file.
srv_senddone Sends a results completion message to the client. Use this function after a results set has been sent by the server.
srv_sendmsg Sends a message to the client.
srv_sendstatus Sends a message or a status value to the client in response to a request. Use this function to send a value to the client indicating the status of a client request.
srv_sfield Returns a pointer to a field in an SRV_SERVER structure. Use this function to obtain server configuration information, such as the number of allowable client connections.
srv_message_handler Calls SQL Server from an extended stored procedure to log an error.