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

WriteVersion

Purpose

WriteVersion writes out a CMetaObject to the repository. Unlike WriteObject, WriteVersion always overwrites the current version of the object, that is, a new version of an existing object is not created. In all other aspects of functionality, WriteVersion is identical to WriteObject.

Requirements

If the object does not exist in the repository, a Class ID attribute is required to be set (internal or globally unique). All class properties of type SQL_DATE must also be set. The internal ObjectID set to zero indicates that this object is to be created in the repository. When the internal ObjectID is not zero, it must be for a version of the object.

Syntax

HRESULT WriteVersion(void);