New in version 6.1.0: See the new features.
Specify the audit database to use¶
audit_database() |
Specify the audit database to use |
SYNTAX
sage/srep:
audit_database(server, “AuditDb”)
Note: server can be a server name string, an opened !file on the server or an opened database on the server.
KfLib* (DNet, Java and Cpp):
Server.auditDatabase(AuditDb)
SQL Engine (sql command and ScODBC):
AUDIT DATABASE “AuditDb”
Functionality
The method sets the current audit database to use
Must be used before any keyed file access or any other audit_ method so that the correct database must be modified.
The execution of the method waits for the command completion
The return value is 0 (K_OK) if successful or a keyed file error code otherwise
EXAMPLE
Setup the “MyDatabase” audit database:
tmp.kfStatus = audit_database("localhost", "MyDatabase")
RELATED TOPICS |