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

SignOn

Purpose

The CMetaRepository class SignOn function allows multiple users to sign on to MDS. An MDS username and password are required.

Description

SignOn can be called in replace of Initialize. If not previously initialized, SignOn will set up the connection to the MDS repository database. The connection remains until DeInitialize is called or the thread or process terminates. Applications should always call the Deinitialize function before terminating to ensure that the database connection is terminated properly.

For a multi-threaded application, each thread must call Initialize or SignOn and each thread will have a separate connection to the MDS Repository database.

If SignOn is issued for multiple users, you must set the CallerName in the object before using a CMetaObject function to indicate which user’s permission to apply for the function call.

Syntax

HRESULT SignOn(LPCTSTR strUser, LPCTSTR strPassword);