srv_sendstatistics

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).

Syntax

int srv_sendstatistics ( SRV_PROC * srvproc );

Arguments
srvproc
Is a pointer to the SRV_PROC structure that is the handle for a particular client connection. The structure contains information the ODS Library uses to manage communication and data between the Open Data Services server application and the client.
Returns

SUCCEED or FAIL.

Remarks

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.

See Also
srv_clearstatistics  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.