Syntax - ODBC Driver for Teradata

ODBC Driver for Teradata® User Guide

Product
ODBC Driver for Teradata
Release Number
17.10
Published
October 2021
Language
English (United States)
Last Update
2021-11-02
dita:mapPath
wxs1608578396899.ditamap
dita:ditavalPath
nkw1500504256726.ditaval
dita:id
B035-2526
lifecycle
previous
Product Category
Teradata Tools and Utilities
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.