Examples

ODBC Driver for Teradata® User Guide

prodname
ODBC Driver for Teradata
vrm_release
16.20
category
User Guide
featnum
B035-2526-108K

For a connect function call containing the Teradata Wallet reference string:

  • SQLConnect(hdbc, "mydsn", SQL_NTS, "myuid", SQL_NTS,"$tdwallet(RefString)", SQL_NTS);
  • SQLDriverConnect(hdbc, NULL, "DSN=mydsn;UID=myid;PWD=$tdwallet(RefString);", SQL_NTS, szConnStrout, cbConnStrOutMax, &cbConnectStrOutLen, NULL);
  • SQLDriverConnect(hdbc, NULL, "DRIVER={Teradata}; DBCNAME=platinum; AUTHENTICATION=LDAP;AUTHENTICATIONPARAMETER=authcid=$tdwallet(RefString1) password=$tdwallet(RefString2); ", SQL_NTS, szConnStrout, cbConnStrOutMax, &cbConnectStrOutLen, NULL);