From the Pervasive.SQL 2000i Doc SP4
The CREATE TRIGGER statement creates a new trigger in a database. Triggers are a type of stored procedure that are automatically executed when data in a table is modified with an "INSERT", "UPDATE", or "DELETE". Thus it should be no problem to create triggers in the CREATE STORED PROCEDURE Dialog and in fact it is not.
As I mentioned before the trigger fires as intended. The problem is I have to create a lot of triggers and it is really annoying to copy and paste them between my script file and the CREATE STORED PROCEDURE Dialog. It would be great to create the complete database in one step (running the script)
Note even the examples given in documention don't work within a script try this:
CREATE TABLE A (col1 INTEGER, col2 CHAR(10));
CREATE TABLE B (col1 INTEGER, col2 CHAR(10)) ;
CREATE TRIGGER MyInsert
AFTER INSERT ON A FOR EACH ROW
INSERT INTO B VALUES (NEW.col1, NEW.col2);
Creating the tables is no problem, but creating the trigger fails. Perhaps there is no other way to create triggers and procedures than using the dialog ?