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.
Im using DB2 Universal Database Version 7.2.
Why can't I do the following in a Trigger???
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
I would like to create Triggers in DB2 that use Isolation Level UR... Is this possible to be done in DB2?? - I want to avoid deadlock errors with my triggers.
I am not sure if you can set the isolation level on a trigger, but try adding "WITH UR" at the end of each select statement. You cannot use UR on an SQL statement that changes data (or it will have no effect).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
but i've found articles that talk about db2 and setting isolation levels as i tried to do in my previous post
http://publib.boulder.ibm.com/infoce...mstsettraj.htm
"If the SET TRANSACTION statement is run in a trigger, the isolation level specified applies to all subsequent SQL statements until another SET TRANSACTION statement occurs or until the trigger completes, whichever happens first"