Determining current auditing settings  Examples of adding user-defined audit records

Chapter 18: Auditing

Adding user-specified records to the audit trail

sp_addauditrecord allows users to enter comments into the audit trail. The syntax is:

sp_addauditrecord [text] [, db_name] [, obj_name]
     [, owner_name] [, dbid] [, objid]

All the parameters are optional:

You can use sp_addauditrecord if:

By default, only a System Security Officer and the Database Owner of sybsecurity can use sp_addauditrecord. Permission to execute it may be granted to other users.





Copyright © 2005. Sybase Inc. All rights reserved. Examples of adding user-defined audit records

View this book as PDF