If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to create triggers on DB2 OS390 foreground

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-19-04, 15:29
MahendraSetty MahendraSetty is offline
Registered User
 
Join Date: Apr 2004
Posts: 48
Wink How to create triggers on DB2 OS390 foreground

I have written a trigger but to create it by running the sql scripts I get this error DSNT408I SQLCODE = -552, ERROR: TMXS910 DOES NOT HAVE THE PRIVILEGE TO PERFORM

I beleive I need to execute a SET CURRENT SQLID statement.

If I include this statement then I get the error DSNT404I SQLCODE = 098, WARNING: A DYNAMIC SQL STATEMENT ENDS WITH A SEMICOL

Now my sql code looks like :

SET CURRENT SQLID = 'DALLDBA' ;
CREATE TRIGGER TDB2OLTW.CAPS
AFTER UPDATE OF
...
...

The id DALLDBA has proper authority but I cannot logon as DALLDBA. My id is TMXS910

How should I proceed ? any suggestions...

Thanks
Mahendra
Reply With Quote
  #2 (permalink)  
Old 04-20-04, 03:32
Walter Janissen Walter Janissen is offline
Registered User
 
Join Date: Nov 2003
Location: Germany
Posts: 62
If you use SPUFI, you must first change the SQL-delimiter before you execute your SQL-statements. You can change the delimiter by going to the SPUFI default panel.
Reply With Quote
  #3 (permalink)  
Old 04-20-04, 09:30
MahendraSetty MahendraSetty is offline
Registered User
 
Join Date: Apr 2004
Posts: 48
Great !!! It works. Thanks

Quote:
Originally posted by Walter Janissen
If you use SPUFI, you must first change the SQL-delimiter before you execute your SQL-statements. You can change the delimiter by going to the SPUFI default panel.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On