Contents Index EVENT_CONDITION_NAME function [System] EXP function [Numeric]

ASA SQL Reference
  SQL Functions
    Alphabetical list of functions

EVENT_PARAMETER function [System]


Function 

Provides context information for event handlers.

Syntax 

EVENT_PARAMETER ( context-name )

context-name:
  'AppInfo'
'ConnectionID'
DisconnectReason
'EventName'
'Executions'
'NumActive'
'ScheduleName'
'TableName'
'User'
condition-name

Parameters 

context-name    One of the preset strings. The strings are case insensitive, and carry the following information:

In addition, you can access any of the valid condition-name arguments to the EVENT_CONDITION function from the EVENT_PARAMETER function.

The following table indicates which context-name values are valid for which system event types. "User events" (indicated by quotation marks) are events which do not contain a TYPE clause.

context-name: valid for event types:
ConnectionID BackupEnd, "Connect", "Disconnect", Global Autoincrement, "RAISERROR", user events
User BackupEnd, "Connect", ConnectFailed, "Disconnect", GlobalAutoincrement, "RAISERROR", user events
EventName all
Executions all
NumActive all
TableName GlobalAutoincrement
AppInfo BackupEnd, "Connect", ConnectFailed, "Disconnect", "RAISERROR", user events
DisconnectReason "Disconnect"
Example 

Add the following message to the engine window output:'ev_PassedParameter - was trigger at: ' + event_parameter('Time');

CREATE EVENT ev_PassedParameter
HANDLER
BEGIN
END;
TRIGGER EVENT ev_PassedParameter("Time"=string(current timestamp));
Standards and compatibility 
See also 

EVENT_CONDITION function [System]

CREATE EVENT statement

TRIGGER EVENT statement


Contents Index EVENT_CONDITION_NAME function [System] EXP function [Numeric]