BeginTransaction - 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

BeginTransaction

Purpose

The CMetaRepository class BeginTransaction function starts a new explicit transaction and sets the transaction nesting level counter to one or increments the nesting level counter.

Description

If an explicit transaction is not currently open, the CMetaRepository class BeginTransaction function starts a new one and sets the transaction nesting level counter to one.

If an explicit transaction is already open, the BeginTransaction function increments the nesting level counter.

Note: The nested transactions within an explicit transaction are not separate transactions, but are part of a single flat transaction, so the BeginTransaction function only opens a new transaction if there is not one already open.

Syntax

HRESULT  BeginTransaction();