AuditStore class

Manages AuditStore objects.

Syntax

class AuditStore

Properties

The AuditStore class provides the following properties:

Property Description

ActiveDatabase property

Gets the active audit store database.

Databases property

Gets the list of the audit store databases.

Name property (audit store)

Gets the display name of the audit store.

Methods

The AuditStore class provides the following methods:

Method Description

AddDatabase method

Creates a new audit store database and attaches the database to the audit store using default settings.

AddDatabaseByScript method

Creates a new audit store database and attaches the database to the audit store using custom settings specified in SQL scripts.

AttachDatabase method

Attaches an existing audit store database to the audit store.

ChangeActiveDatabase method

Changes which database is currently active in the audit store.

DetachDatabase method

Detaches a database from the audit store.

GetDatabase method

Retrieves the audit store database object given the database display name.

Discussion

An audit store can have multiple databases attached, but only one can be active at a time. This class allows you to manage the audit store, including attaching and detaching databases and specifying which database is active. To get information about the attached databases, use the AuditStoreDatabase class and the AuditStoreDatabases class.

See also