Command in Sql Server Master database
USE MASTER
GO
CREATE SERVER AUDIT audit_test
TO FILE (FILEPATH = 'G:\')
GO
CREATE SERVER AUDIT SPECIFICATION audit_test_spec
FOR SERVER AUDIT [audit_test]
ADD (FAILED_LOGIN_GROUP),
ADD (SUCCESSFUL_LOGIN_GROUP)
WITH (STATE=ON)
GO
Now check in Security-> Audit -> Audit log
USE MASTER
GO
CREATE SERVER AUDIT audit_test
TO FILE (FILEPATH = 'G:\')
GO
CREATE SERVER AUDIT SPECIFICATION audit_test_spec
FOR SERVER AUDIT [audit_test]
ADD (FAILED_LOGIN_GROUP),
ADD (SUCCESSFUL_LOGIN_GROUP)
WITH (STATE=ON)
GO
Now check in Security-> Audit -> Audit log
Comments
Post a Comment