Setting the Data Source Object Required Properties Values - OLE DB Provider for Teradata

OLE DB Provider for Teradata User Guide

Product
OLE DB Provider for Teradata
Release Number
15.00
Language
English (United States)
Last Update
2018-09-28
dita:id
B035-2498
Product Category
Teradata Tools and Utilities

Setting the Data Source Object Required Properties Values

After the consumer creates the Data Source object, the consumer must initialize the Data Source object. To initialize the Data Source object, the consumer code assigns values to properties in the DBPROPSET_DBINIT property set. The values must provide OLE DB Provider for Teradata enough information to create a Teradata session.

The consumer must set the following required properties:

 

Table 1: Setting Consumer Properties  

DBPROPSET_INIT Property

Function

DBPROP_AUTH_USERID

Teradata User ID

Although Teradata Database allows semicolons in the username, OLE DB Provider for Teradata does not. If a username contains a semicolon, the call to IDBInitialize::Initialize returns a DB_SEC_E_AUTH_FAILED error code and presents the error message:

[Teradata Database]The UserId, Password, or Account is Invalid

DBPROP_AUTH_PASSWORD

Teradata Password

DBPROP_INIT_DATASOURCE

Teradata Database name or IP address (either IPv6 or IPv4)