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

CreateMDSModel

Purpose

The CMetaAIM CreateMDSModel function creates an AIM model object.

Description

The GUID can optionally be provided. The default OwnerID is the logged in user. The metamodel's versioning support will be set from the repository's versioning support flag.

Requirements

When creating an AIM, CMetaAIM names must be unique within the repository database.

Updates to an existing model object are not permitted.

Syntax

HRESULT CreateMDSModel(
	LPCTSTR strModelName,
	LPCTSTR strModelDesc,
	const GUID& gGID,
	const OBJECTID_t lOwnerID = NULLLOID,
	const OBJECTID_t SecurityProfileID = NULLLOID);
 

Argument

In/Out

Description

Name

In

Name of the model.

Desc

In

Description of model.

gGUID

In

Global unique identifier of this model. Set to NULLGUID to have MDS generate the GUID for the model.

OwnerID

In
(Optional)

OwnerID of this object.

SecurityProfileID

In
(Optional)

Security Profile assigned to the object.