> You're not trying to commit in a stored procedure, right?
>
> I'd guess you need to check your server side settings...one of the servers
> doesn't have a tp monitor spm or somthing set up...
It is OK to commit is a SP on DB2 for LUW.
Serge Rielau - 28 Apr 2005 16:37 GMT
>>You're not trying to commit in a stored procedure, right?
>>
>>I'd guess you need to check your server side settings...one of the servers
>>doesn't have a tp monitor spm or somthing set up...
>
> It is OK to commit is a SP on DB2 for LUW.
..if the proc is called by teh app.
If the proc is aclled by a function or a trigger commit and rollback are
verboten.
Cheers
Serge

Signature
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Sean McKeough - 28 Apr 2005 18:49 GMT
It's NOT ok for twophase commit.
>>You're not trying to commit in a stored procedure, right?
>>
>>I'd guess you need to check your server side settings...one of the servers
>>doesn't have a tp monitor spm or somthing set up...
>
> It is OK to commit is a SP on DB2 for LUW.
Mark A - 28 Apr 2005 22:05 GMT
> It's NOT ok for twophase commit.
Is that what SYNCPOINT=2 means? Is a two-phase commit needed?
I found this in the V8.1 CLI Guide and Reference (pg 336), but not exactly
sure what it means in regard to this question:
SYNCPOINT CLI/ODBC Configuration Keyword
Note: This keyword is not supported in DB2 Version 8, but is available for
backward compatibility only. Refer to the documentation for previous
versions of DB2 for information on this keyword at:
http://www.ibm.com/software/data/db2/library.