17.20 - Syntax - 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
SQLRETURN SQLDriverConnect(
   SQLHDBC 	ConnectionHandle,
   SQLHWND 	WindowHandle,
   SQLCHAR * 	InConnectionString,
   SQLSMALLINT 	StringLength1,
   SQLCHAR *	OutConnectionString,
   SQLSMALLINT 	BufferLength,
   SQLSMALLINT * 	StringLength2Ptr,
   SQLUSMALLINT 	DriverCompletion);

SQLDriverConnect supports data sources that require more connection information than the three arguments in SQLConnect, dialog boxes to prompt the user for all connection information, and data sources that are not defined in the system information.

After a connection is established, SQLDriverConnect returns the completed connection string. The application can use this string for subsequent connection requests.

See the connection string keywords and Connection dialog.

SQLDriverConnect returns SQL_ERROR and an error message if no authentication mechanism can be selected.