Previous Topic

Next Topic

Raise Dbevent

Valid in: SQL, ESQL, DBProc

The Raise Dbevent statement enables a session to communicate status information to other sessions that are registered to receive event_name.

If schema is omitted, the DBMS Server checks first for the specified database event owned by the effective user of the session. If the current effective user does not own the database event, the DBMS Server seeks the specified database event in the database events owned by the DBA.

Use the optional event_text parameter to pass a (maximum 256 character) string to receiving applications; to obtain the text, receiving applications must use the inquire_sql(dbeventtext) statement.

To restrict database event notification to the session that raised the database event, specify with noshare. To notify all registered sessions, specify with share or omit this clause. The default is share.

If a database event is raised from within a transaction and the transaction is subsequently rolled back, the database event notification is not rolled back.

Previous Topic

Next Topic

Syntax

The Raise Dbevent statement has the following format:

[EXEC SQL] RAISE DBEVENT [schema.]event_name [event_text]

               [WITH [NO]SHARE];

Previous Topic

Next Topic

Embedded Usage

In an embedded Raise Dbevent statement, event_name cannot be specified using a host language variable, though event_text can be specified using a host string variable.

Previous Topic

Next Topic

Permissions

To raise a database event you do not own, specify the schema parameter and have raise privilege for the database event. To assign the raise privilege to another user, use the grant statement.

Previous Topic

Next Topic

Related Statements

Create Dbevent

Get Dbevent

Inquire_sql

Register Dbevent

Remove Dbevent


© 2007 Ingres Corporation. All rights reserved.