New in version 6.1.0: See the new features.

Disable audit database

audit_disable_database()

Disable audit database


SYNTAX

  • sage/srep:

    audit_disable_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.auditDisableDatabase(AuditDb)


  • SQL Engine (sql command and ScODBC):

    AUDIT DISABLE DATABASE “AuditDb”


Functionality

  1. If the database object is already created:

    • Closes all that auditDb files

    • Changes the audit database to be disabled at the server level

  2. If the database object is not created:

    • Creates a database object on the server

    • Does not open any auditDb files

    • Flag the database as disabled

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

To disable the default audit database:

tmp.kfStatus = audit_disable_database("localhost", "default")

RELATED TOPICS

Audit service

Audit functions