CREATE TRIGGER ZJCTSS00.CASEU1 AFTER UPDATE OF CASE_YYMM_DT ON ZJCTSS00.CASE REFERENCING OLD AS OLDROW NEW AS NEWROW FOR EACH ROW MODE DB2SQL BEGIN ATOMIC UPDATE ZJCTSS00.NAMEX SET CASE_YYMM_DT = NEWROW.CASE_YYMM_DT WHERE CASE_PROJ_NUM = OLDROW.CASE_NUM AND SOURCE_IND = 'R'; END# SQLCODE = -20100, ERROR: AN ERROR OCCURRED WHEN BINDING A TRIGGERED SQL STATEMENT. INFORMATION RETURNED: SEC NUMBER : 2 SQLCODE -551, SQLSTATE 42501, AND MESSAGE TOKENS ENDVID2,UPDATE,ZJCTSS00.NAMEX.CASE_YYMM_DT SQLSTATE = 56059 SQLSTATE RETURN CODE SQLERRP = DSNXODML SQL PROCEDURE DETECTING ERROR
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
- The ALTER privilege on the table on which the trigger is defined
- DBADM authority on the database that contains the table
- SYSADM or SYSCTRL authority 3. The SELECT privilege on the table on which the trigger is defined if any transition variables or transition tables are specified. 4. The SELECT privilege on any table or view to which the search condition of triggered action refers. 5. The necessary privileges to invoke the triggered SQL statements in the triggered action.
Editor's note: Do you agree with this expert's response? If you have more to share, post it in one of our .VO7aaqqaAFk.0@/search390>discussion forums.
Dig Deeper on IBM DB2 management
Related Q&A from Craig S. Mullins
Our expert suggests that the best way to pass the SAP BW exam is to have hands-on job experience. But that's not all he has to say about ...continue reading
To export data from a DB2 table to a flat file, you need to run an export specifying the proper file format. The export utility exports data from a ...continue reading
Craig Mullins recommends two specific resources for learning how to create and support Binary Large Objects (BLOB) in DB2.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.