Create an audit specification to define the level of auditing
events that are written to an audit file.
About this task
You can create an audit specification at the server level
or at the database level. Depending on your requirements,
you might require both a server and database audit
specification.
Procedure
- From the Microsoft SQL Server Management
Studio navigation menu, select one the following options:
- To enable Server or Database Audit, select one of the following options:
- Right-click Server Audit Specification, then select New
Server Audit Specifications
- Right-click Database Audit Specification, then select New
Database Audit Specifications
- In the Name field, type a name for
the new audit file.
- From the Audit list, select the
audit object that you created.
- In the Actions pane, add actions
and objects to the server audit.
- Click OK.
- Right-click your server audit specification and select one of the following options:
- Enable Server Audit Specification
- Enable Database Audit Specification