Previous Topic: Define a SQL Server Database Audit ActionNext Topic: Define a Database Filegroup in SQL Server


Define a SQL Server Database Audit Specification

The SQL Server Database Audit Specification object collects a single instance of server or database-level actions and groups of actions to monitor. The Database Audit Specification object also belongs to a SQL Server Audit. You can create one database audit specification per SQL Server database per audit.

Use the SQL Server Database Audit Specification Editor in a SQL Server physical model to define the database actions to audit.

To define a SQL Server database audit specification

  1. Click Target - SQL Server, Database Audit Specifications on the Model menu.

    The SQL Server Database Audit Specification Editor opens.

  2. Select the database audit specification in the Navigation Grid that you want to define and work with the following options:

    Note: Click New New icon in property editors to create a new object on the toolbar to create a new database audit specification. Use the Enter filter text box to filter a very large list of database audit specifications to quickly locate the one that you want to define.

    Name

    Specifies the name of the database audit specification. Change the name of the database audit specification in this field.

    Enabled

    Specifies to enable the collection of records of database actions for auditing.

    Server Audit

    Specifies the name of the audit to which the selected specification applies.

    Generate

    Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.

  3. Click the General tab and work with the following options:
    Audit Action Groups

    Displays the available groups of auditable actions. Select each group that you want to audit.

    Database Audit Actions

    Displays the available auditable actions and lets you specify the SQL Server principal on which to apply the audit action or audit action group.

    Note: Click the erw_hlp--database audit action editor button--SCR button to open the SQL Server Database Audit Action Editor to create or edit a database audit action.

  4. Click the Where used tab to les you review where the selected data movement rule is used.
  5. (Optional) Click the Comment tab and enter any comments that you want to associate with the object.
  6. (Optional) Click the UDP tab to work with user-defined properties for the object.
  7. (Optional) Click the Notes tab to view and edit user notes.
  8. Click Close.

    The database audit specification is defined and the SQL Server Database Audit Specification Editor closes.