Actions Performed by ROLLBACK with Embedded SQL - Analytics Database - Teradata Vantage

SQL Data Manipulation Language

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-04-05
dita:mapPath
pon1628111750298.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
esx1472246586715
lifecycle
latest
Product Category
Teradata Vantage™

ROLLBACK performs the following additional actions when used within an embedded SQL application:

  1. Discards dynamic SQL statements prepared within the current transaction.
  2. Closes open cursors.
  3. Cancels database changes made by the current transaction.
  4. Sets SQLCODE to zero when ROLLBACK is successful.
  5. Sets the first SQLERRD element of the SQLCA to 3513 or 3514, depending on whether abort_message is specified.
  6. Returns an abort message in the SQLERRM field of the SQLCA if you specify a WHERE clause.
  7. Terminates the application program connection (whether explicit or implicit) to the database if the RELEASE keyword is specified.
Environment Preprocessor Action When a LOGON/CONNECT Request Does Not Precede the Next SQL Request
Mainframe-attached Attempts to establish an implicit connection.
Workstation-attached Issues a No Session Established error.