ReadObject - Teradata Meta Data Services

Teradata Meta Data Services Programmer Guide

Teradata Meta Data Services
Release Number
English (United States)
Last Update
Product Category
Teradata Tools and Utilities



The CMetaObject class ReadObject function reads the current version of an object from the repository database into the instantiated CMetaObject. This may require waiting for the release of write locks held by other transactions. MDS does not support reads of write-locked MDS repository data.


The class ID (internal or globally unique) and object name or the object ID (internal or globally unique) must be set before calling ReadObject. If given, the internal object ID must be for a version of the object.

Note: The order of evaluation to determine the object to be read is: (1) internal object ID if not zero; (2) global object ID if not null; (3) internal class ID and name if the internal class ID is not zero; and (4) global class ID and name.


HRESULT ReadObject(void);