Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update trigger commiting many rows without cursors

Status
Not open for further replies.

sguslan

IS-IT--Management
Aug 27, 2001
489
SA
Let me try again[my second post on the subject]

I wrote an update/insert trigger to do contextual analysis on data piped into sql7 through a powerBuilder program. The source of data is EBCDIC/DB2/OS390 Mainframe(aka yucky) and the purpose of the trigger is to do 1-byte-to-2-bytes conversion of CHAR data in some columns.

The trigger is only successful when commiting after each row and using a cursor through INSERTED...
Can I do it commiting more than a row at a time and without the use of cursors?

Instead of triggers, we tried the using vbscript in a DTS (using DB2 connectivity drivers such as Starsql 32/IBM db2 connect odbc/ms oledb ), but all failed due probably to the nature of the query. the query is a beast made up of more than 9 unions and hundreds of lines of sql code.

Much obliged ..




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top