ConnectionGetSvrUser
Gets the DNS host name of the given instance of SQL Server and its connected port number.
Syntax
void ConnectionCheckForData (
void * ConnectionObject,
char * Username);
Parameters
- ConnectionObject
[in]
Pointer to an IPC-dependent structure. - Username
[out]
String of characters with the DNS host name of the given instance of SQL Server and its connected port number.
Remarks
ConnectionGetSvrUser returns the DNS host name and port number for a given instance of SQL Server only when the Connection object is using TCP/IP. For other network protocols, it returns NULL.
See Also
Applies To: Connection Object (Net-Library)