motioneye
asked on
sql2008 R2 - Database audit specification ( no logged on drop and alter objects commands )
Hi,,
Hi,
I have following database audit specification which is now running in sql2008 R2, we do some test with the table creation and we seen it capture the log, but when we drop the table, or modify the table, this activities did not get logged.
someone where know about this and a way to fix the audit to work better ?
USE [DBProton]
GO
CREATE DATABASE AUDIT SPECIFICATION [DatabaseAuditSpecificatio n_DBProton ]
FOR SERVER AUDIT [DBProton_Database_Audit]
ADD (DATABASE_OBJECT_CHANGE_GR OUP)
WITH (STATE = ON)
GO
Hi,
I have following database audit specification which is now running in sql2008 R2, we do some test with the table creation and we seen it capture the log, but when we drop the table, or modify the table, this activities did not get logged.
someone where know about this and a way to fix the audit to work better ?
USE [DBProton]
GO
CREATE DATABASE AUDIT SPECIFICATION [DatabaseAuditSpecificatio
FOR SERVER AUDIT [DBProton_Database_Audit]
ADD (DATABASE_OBJECT_CHANGE_GR
WITH (STATE = ON)
GO
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Barry Cunney
I have done some test with it and it appears that SQL server needs both audit specification ( DATABASE_OBJECT_CHANGE_GRO UP & SCHEMA_OBJECT_CHANGE_GROUP ) in order to capture the alter and drop. One repercussion of having both audit specification is this caused some log are audited twice, to be specific the "create".
Do you know any way that we can exclude DATABASE_OBJECT_CHANGE_GRO UP with capture "Create"
I have done some test with it and it appears that SQL server needs both audit specification ( DATABASE_OBJECT_CHANGE_GRO
Do you know any way that we can exclude DATABASE_OBJECT_CHANGE_GRO
ASKER
I'm reading from Mcsft link https://msdn.microsoft.com/en-us/library/cc280663(v=sql.105).aspx
and it says below for DATABASE_OBJECT_CHANGE_GRO
Do you think any other thoughts why I must include SCHEMA_OBJECT_CHANGE_GROUP
This event is raised when a CREATE, ALTER, or DROP statement is executed on database objects, such as schemas. This event is raised whenever any database object is created, altered or dropped.