23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

AUDIT INSERT<br />

Syntax<br />

Authorization<br />

User specified in username.<br />

Related statements<br />

CREATE USER, DROP USER<br />

Writes application audit events to an audit-enabled database.<br />

AUDIT INSERT<br />

For more information about auditing, see OpenEdge Getting Started: Core Business Services.<br />

For more information about enabling a database for auditing, see OpenEdge <strong>Data</strong> <strong>Management</strong>:<br />

<strong>Data</strong>base Administration.<br />

AUDIT INSERT ( event_id,<br />

[ event_context | NULL ]<br />

[ event_detail | NULL ]<br />

event_id<br />

Positive integer value corresponding to an audit event record. The event_id must be a<br />

value greater than 32000.<br />

event_context<br />

Free-form character value that qualifies the event_id. May include non-ASCII characters.<br />

event_detail<br />

);<br />

Free-form character value that supplies detailed information about the audit event. May<br />

include non-ASCII characters.<br />

Notes • Before inserting the specified application audit event into the database, the OpenEdge<br />

<strong>SQL</strong> engine determines the following:<br />

– The connected user has been granted the audit insert privilege.<br />

– The event id is valid and active.<br />

If both of these conditions are true, the engine writes the application audit event to the<br />

database. If one or both are not true, the engine does not write the event.<br />

• AUDIT INSERT always returns a success status. This prevents users from determining<br />

whether or not they have privileges to log application audit events.<br />

7

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

Saved successfully!

Ooh no, something went wrong!