AuditStoreDatabase class
Manages AuditStoreDatabase
objects.
Syntax
class AuditStoreDatabase
Properties
The AuditStoreDatabase
class provides the following properties:
Property | Description |
Gets the end time of a formerly active database. |
|
Gets the start time of an active or formerly active database. |
|
Gets the list of management database accounts that are allowed to access this audit store. |
|
Gets the list of collector accounts that are allowed to access this audit store. |
|
Gets the audit store database name. |
|
Indicates whether this database is the current active database in the audit store. |
|
Indicates whether this database was formerly the active database and is now retired. |
|
Gets the display name of the audit store database. |
|
Gets the Microsoft SQL Server instance name of the audit store database. |
Methods
The AuditStoreDatabase
class provides the following methods:
Method | Description |
Adds a management database account to the list of accounts allowed to access this audit store database. |
|
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.