srv_getserver

Returns a pointer to the SRV_SERVER structure being used by a client.


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

SRV_SERVER * SRV_GETSERVER ( SRV_PROC * srvproc );

Arguments
srvproc
Is a pointer to the SRV_PROC structure that is the handle for a particular client connection.
Returns

A pointer to SRV_SERVER. If srvproc is not valid, returns NULL.

Remarks

Every client process has a SRV_PROC structure that contains client login information, the Open Data Services server application name, the event list, and a pointer to the SRV_SERVER structure.

The SRV_GETSERVER macro accesses the pointer to the SRV_SERVER structure within the SRV_PROC structure.

  


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