Group: ODBC API - Library: odbc32
Testing an ODBC connection for supporting specific functionality
Using vendor-neutral SQL constructs
Retrieveing general information about the driver and data source associated with an ODBC connection
Establishing connection using the SQLDriverConnect
Obtaining list of tables stored in an ODBC Data Source
SQLRETURN SQLConnect(
SQLHDBC ConnectionHandle,
SQLCHAR * ServerName,
SQLSMALLINT NameLength1,
SQLCHAR * UserName,
SQLSMALLINT NameLength2,
SQLCHAR * Authentication,
SQLSMALLINT NameLength3);
DECLARE SHORT SQLConnect IN odbc32 AS SQLConnect32;
INTEGER ConnectionHandle,;
STRING ServerName,;
INTEGER NameLength1,;
STRING UserName,;
INTEGER NameLength2,;
STRING Authentication,;
INTEGER NameLength3
ConnectionHandle [Input] Connection handle.
ServerName [Input] Data source name.
NameLength1 [Input] Length of *ServerName.
UserName [Input] User identifier.
NameLength2 [Input] Length of *UserName.
Authentication [Input] Authentication string (typically the password).
NameLength3 [Input] Length of *Authentication.
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.
SQLAllocHandle with a HandleType of SQL_HANDLE_DBC is called to allocate a connection.
When the application calls SQLDisconnect to disconnect, the connection is returned to the connection pool and is available for reuse.
I guess I should not explain why this function is declared with an alias.