Pray you have FP11 and follow this link. :-)
http://tinyurl.com/8ndah
It's fixed in Viper by default (not in the viper test drive though).
Cheers
Serge

Signature
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Thanks Serge, that did it. (I do have FP 11 on this server).
Too bad it precludes DDL in the SP, tho. Using your advice from
another post, I was using DGTT in the SP w/ ON COMMIT PRESERVE
ROWS.
In the SP, I was shoving the new audit trail rows into the DGTT
as I went, and then finally adding them all to the audit trail
w/ one fast insert from subselect.
Guess I'll have to go back to multiple inserts on the audit trail.
cheers
aj
>> DB2 LUW 8.2 FP5 (or is it 8.1 FP11?)
>>
[quoted text clipped - 19 lines]
> Cheers
> Serge
Serge Rielau - 25 May 2006 10:52 GMT
> Thanks Serge, that did it. (I do have FP 11 on this server).
>
> Too bad it precludes DDL in the SP, tho. Using your advice from
> another post, I was using DGTT in the SP w/ ON COMMIT PRESERVE
> ROWS.
The DDL restriction is gone in DB2 Viper.
But perhaps you could define your DGTT outside the proc (at session
startup).
Cheers
Serge

Signature
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Kovi - 02 Jun 2006 12:58 GMT
Hi!
If I set variable DB2_RESOLVE_CALL_CONFLICT are there any dangers
involved in this ? I don't know, maybe corrupting some data, ...
Do you consider setting this variable safe ?
Best regards,
Kovi
> > Thanks Serge, that did it. (I do have FP 11 on this server).
> >
[quoted text clipped - 7 lines]
> Cheers
> Serge
Serge Rielau - 02 Jun 2006 15:28 GMT
> Hi!
>
> If I set variable DB2_RESOLVE_CALL_CONFLICT are there any dangers
> involved in this ? I don't know, maybe corrupting some data, ...
> Do you consider setting this variable safe ?
Yes, it's safe. The only cave-at is that in V8 setting this variable
will disallow any DDL inside of the called procedure including DECLARE
GLOBAL TEMPORARY TABLE.
Cheers
Serge
PS: My drive back was harmless and I arrived on time. :-)

Signature
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Kovi - 03 Jun 2006 08:16 GMT
OK, great. Since just yesterday we tried to call procedures from
triggers and we got SQL746 error. :)
Best regards,
Kovi
P.S.: Good to hear that. I hope you wedding will be great and that you
don't break that bottle of wine. :)
> > Hi!
> >
[quoted text clipped - 9 lines]
>
> PS: My drive back was harmless and I arrived on time. :-)
Kovi - 03 Jun 2006 08:18 GMT
Ups ... sorry for that... My mistake...
> OK, great. Since just yesterday we tried to call procedures from
> triggers and we got SQL746 error. :)
[quoted text clipped - 22 lines]
> > DB2 Solutions Development
> > IBM Toronto Lab