Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / January 2006

Tip: Looking for answers? Try searching our database.

Equivalent of Sybase's @@transtate in DB2

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pankaj_wolfhunter@yahoo.co.in - 16 Jan 2006 05:34 GMT
Greetings,

In Sybase global variable @@transtate keeps track of the current state
of a transaction. Sybase server determines what state to return by
keeping track of any transaction changes after a statement executes.
@@transtate may contain the following values:

0
Transaction in progress. A transaction is in effect; the previous
statement executed successfully.

1
Transaction succeeded. The transaction completed and committed its
changes.

2
Statement aborted. The previous statement was aborted; no effect on
the transaction.

3
Transaction aborted. The transaction aborted and rolled back any
changes.

In DB2, is this the same as checking the SQLCODE after each transaction
or something else?

Any help would be appreciated.

TIA
Knut Stolze - 16 Jan 2006 08:45 GMT
> Greetings,
>
[quoted text clipped - 21 lines]
> In DB2, is this the same as checking the SQLCODE after each transaction
> or something else?

After each SQL statement.

Signature

Knut Stolze
DB2 Information Integration Development
IBM Germany

pankaj_wolfhunter@yahoo.co.in - 16 Jan 2006 09:28 GMT
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.