Rollback - Teradata Meta Data Services

Teradata Meta Data Services Programmer Guide

Product
Teradata Meta Data Services
Release Number
15.00
Language
English (United States)
Last Update
2018-09-28
Product Category
Teradata Tools and Utilities

Rollback

Purpose

The CMetaRepository class Rollback function resets the transaction nesting level counter to zero and closes an open explicit transaction.

Description

If an explicit transaction is currently open, the CMetaRepository class Rollback function resets the transaction nesting level counter to zero and closes the transaction. The entire explicit transaction is rolled back.

Nested transactions within an explicit transaction are not separate transactions, but are part of a single flat transaction, so the Rollback function rolls all such nested transactions back.

If the user calls the Rollback function when there is no explicit transaction open, the Rollback function returns an error code.

Note: The Rollback function closes all nesting levels of the currently open transaction and terminates the entire transaction, whereas the Commit function closes only the current nesting level.

Syntax

HRESULT  Rollback();