@ACLGetAdminServer
Syntax
@ACLGetAdminServer(hACL);
Description
This @Function determines the Administration Server of a database using a previously loaded in-memory copy of its ACL, represented by the VSPECHACL handle hACL.
VSPECHACL hACL:
A VSPECHACL handle as returned by @ReadACL.
Return:
If an error occurs, the @Function returns @ERROR; otherwise, it returns a TEXT value containing the name of the Administration Server.
Example: @ACLGetAdminServer(HACL);
dbPath:="TEST\\TESTDB1.NSF";
dbh:=@OpenDB(dbPath);
hACL:=@ReadACL(dbh);
dbh:=@CloseDB(dbh);
AdminServerName:=@ACLGetAdminServer(hACL);
hACL:=@ReleaseACL(hACL);
@LogReport(AdminServerName);
The example opens the database TEST\TESTDB1.NSF and creates an in-memory copy of its ACL.
It then determines the Administration Server configured in the ACL using @ACLGetAdminServer.
Finally, the ACL handle is released and the name of the Administration Server is logged to the APILOG.
Note : This text was machine-translated and may contain inaccuracies.
