AuditStoreDatabase class

Manages AuditStoreDatabase objects.

Syntax

class AuditStoreDatabase

Properties

The AuditStoreDatabase class provides the following properties:

Property Description

ActiveEndTime property

Gets the end time of a formerly active database.

ActiveStartTime property

Gets the start time of an active or formerly active database.

AuditServerAccounts property

Gets the list of management database accounts that are allowed to access this audit store.

CollectorAccounts property

Gets the list of collector accounts that are allowed to access this audit store.

DatabaseName property

Gets the audit store database name.

IsActive property

Indicates whether this database is the current active database in the audit store.

IsRetired property

Indicates whether this database was formerly the active database and is now retired.

Name property (audit store database)

Gets the display name of the audit store database.

ServerName property

Gets the Microsoft SQL Server instance name of the audit store database.

Methods

The AuditStoreDatabase class provides the following methods:

Method Description

AddAuditServerAccount method

Adds a management database account to the list of accounts allowed to access this audit store database.

AddCollectorAccount method

Adds a collector account to the list of accounts allowed to access this audit store database.

Discussion

An audit store can have multiple databases attached, but only one can be active at a time. This class provides information about any attached database. You can also add an management database or collectors to the list of accounts allowed access to an audit store database. To get information about the audit store, use the AuditStore class.

See also