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).
SRV_SERVER * SRV_GETSERVER ( SRV_PROC * srvproc );
A pointer to SRV_SERVER. If srvproc is not valid, returns NULL.
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.