Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

ROLLBACK – PB Docs 125 – PowerBuilder Library

ROLLBACK – PB Docs 125

ROLLBACK SQL statement

Description

Cancels all database operations in the specified database
since the last COMMIT, ROLLBACK,
or CONNECT.

note.png Using COMMIT and ROLLBACK in
a server component

COMMIT and ROLLBACK commands
embedded in a server component might have different effects depending
on the setting of the UseContextObject DBParm parameter.

For information on the UseContextObject parameter
see Connecting to Your Database. For information
on deploying components to a transaction server, see Application
Techniques
.

Syntax

Parameter

Description

TransactionObject

The name of the transaction object that
identifies the database in which you want to cancel all operations
since the last COMMIT, ROLLBACK,
or CONNECT. This clause is required only for
transaction objects other than the default (SQLCA).

Usage

ROLLBACK does not cause a disconnect, but
it does close all open cursors and procedures.

note.png Error handling

It is good practice to test the success/failure code
after executing a ROLLBACK statement.

Examples

[Example 1]

This statement cancels all database operations in the database specified
in the default transaction object:

[Example 2]

This statement cancels all database operations in the database specified
in the transaction object named Emp_tran:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x