How You Can Create the Event
The SQL create dbevent statement creates a database event. When you create a database event, you are the owner of the event, and it is part of the database with which you were connected when you created the event, for example:
initialize()=
{
create dbevent myevent;
commit;
}
Generally, you can create database events outside of the applications that send or receive them. When you are designing your applications, you can decide what database events are needed and create them all at once. However, it is possible to create and send a database event in the same application.