|
Retrieves the name of the server where the named database resides.
Header file: CATALOG.HRequires: W3DBAV75.DLL or higher version
BTI_SINT PvGetDbServerName( BTI_LONG hConnection, BTI_CHAR_PTR dbName, BTI_ULONG_PTR pBufSize, BTI_CHAR_PTR serverName, BTI_SINT_PTR pIsLocal);
|
In
|
hConnection
|
Connection handle that identifies the server. Connection handles are obtained with the PvConnectServer() function.
|
|
In
|
dbName
|
Name of the database. A list of all database names for a particular server is obtained with the PvGetDbNamesData() function. A single database name from the resulting list can be obtained with the PvGetDbName() function.
|
|
In/Out
|
pBufSize
|
Address of an unsigned long containing the size of the buffer. Actual size of server name is returned.
|
|
Out
|
serverName
|
Contains server name if successful, empty string otherwise.
|
|
Out
|
pIsLocal
|
Returns zero for remote server, non-zero for local server.
|
The following preconditions must be met:
PvStart()
PvConnectServer()
PvGetDbNamesData()
PvGetDbName()
PvDisconnect()
PvStop()
|
Chapter contents
Prev topic: PvGetDbNamesData()
|