Sends Open Data Services statistics to the client in table format.
Important This Open Data Services function or macro is only supported in Microsoft® SQL Server™ version 7.0 for backward compatibility.
For more information about Open Data Services functions or macros supported for backward compatibility, see Open Data Services (Level 3).
int srv_sendstatistics ( SRV_PROC * srvproc );
SUCCEED or FAIL.
The srv_sendstatistics function returns statistics about the Open Data Services server application’s workload. The statistics are returned in table format with the first column listing the statistic name and the second column showing its value.
Statistic name | Return value description |
---|---|
MAX WORKER THREADS | The highest number of worker threads servicing the command queue since the Open Data Services server application was started or since the last time an srv_clearstatistics call was issued. |
NETWORK READS | The total number of reads from the network device. |
NETWORK WRITES | The total number of writes from the network device. |
WORKER THREADS | The current number of worker threads servicing the command queue. |
srv_clearstatistics |