Advantage SQL Engine
This procedure provides the mechanism by which an application can cause an event notification to be signaled. For security reasons, on dictionary-bound connections sp_SignalEvent can only be called by a trigger or a stored procedure. If you want to be able to signal an event from a client with a simple SQL statement execution, you can create your own stored procedure that wraps this system procedure.
sp_SignalEvent( EventName, char, 200,
WaitForCommit, logical,
Options, integer
);
EventName (I) |
Name of the event to signal |
WaitForCommit (I) |
This indicates if the event is to be signaled at commit time if a transaction is active. If a transaction is active and this flag is true, then the event notification will be sent only when the transaction is committed. If the transaction is rolled back, the event will not be signaled. If there is no active transaction or this flag is false, then the event notification will occur immediately. |
Options (I) |
Options, reserved for future use, pass the value 0 for this parameter. |
CREATE TRIGGER [UpdateCustomer]
ON CUSTOMER
AFTER UPDATE
BEGIN
EXECUTE PROCEDURE sp_SignalEvent( ‘my_event’, false, 0 );
END;