17.20 - Examples - ODBC Driver for Teradata

ODBC Driver for Teradata® User Guide

Product
ODBC Driver for Teradata
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2022-06-21
dita:mapPath
uqj1639470627591.ditamap
dita:ditavalPath
nkw1500504256726.ditaval

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);