17.07.2015 Views

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9 – Honeycombing a DatabaseUSE Master;GOCREATE SERVER AUDIT Honeycomb_AuditTO APPLICATION_LOG;GOListing 9-3: Creating the Server Audit object.• Note that the Server Audit object is created at the instance level so thereference to the database in which the method was executed is notrequired.• When a Server Audit is created, it is disabled by default and will needto be enabled in order for it to begin collecting information. Listing 9-4activates the Server Audit.USE Master;GOALTER SERVER AUDIT Honeycomb_AuditWITH (STATE = ON);GOListing 9-4: Activating the Honeycomb_Audit.Creating a Database Audit SpecificationA Database Audit Specification is a member of the Server Audit and collectsspecific information about the database-level events on which the Server Auditreports. The CREATE DATABASE AUDIT SPECIFICATION method isexecuted in SSMS to create a Database Audit Specification. The following isan example of the syntax of this method:CREATE DATABASE AUDIT SPECIFICATION [SpecificationName]FOR [Server Audit]ADD ([Action] ON [Securable] BY [Principal])WITH (STATE = {ON|OFF})The arguments to this method are:• Specification Name – the textual reference to the Database AuditSpecification.• Server Audit – the textual reference to the Server Audit of whichthe Database Audit Specification is a member.191

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!