 |
 |
 |
|
|  |  |
 |
SQLDriverConnect ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
SQLDriverConnect is an alternative to SQLConnect. It 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. |
 |  | | Code examples: |  | |
|
 |  | | Declaration: |  |  |
SQLRETURN SQLDriverConnect(
SQLHDBC ConnectionHandle,
SQLHWND WindowHandle,
SQLCHAR * InConnectionString,
SQLSMALLINT StringLength1,
SQLCHAR * OutConnectionString,
SQLSMALLINT BufferLength,
SQLSMALLINT * StringLength2Ptr,
SQLUSMALLINT DriverCompletion);
|
 |  |  | | FoxPro declaration: |  |  |
DECLARE SHORT SQLDriverConnect IN odbc32;
INTEGER ConnHandle,;
INTEGER WinHandle,;
STRING InConnStr,;
SHORT StrLen1,;
STRING @ OutConnStr,;
SHORT BufLen,;
SHORT @ StrLen2Ptr,;
INTEGER DriverCompletion
|
 |  |  | | Parameters: |  | ConnectionHandle
[Input]
Connection handle.
WindowHandle
[Input]
Window handle. The application can pass the handle of the parent window, if applicable, or a null pointer if either the window handle is not applicable or SQLDriverConnect will not present any dialog boxes.
InConnectionString
[Input]
A full connection string (see the syntax in "Comments"), a partial connection string, or an empty string.
StringLength1
[Input]
Length of *InConnectionString, in bytes.
OutConnectionString
[Output]
Pointer to a buffer for the completed connection string.
BufferLength
[Input]
Length of the *OutConnectionString buffer.
StringLength2Ptr
[Output]
Pointer to a buffer in which to return the total number of characters available to return in *OutConnectionString.
DriverCompletion
[Input]
Flag that indicates whether the Driver Manager or driver must prompt for more connection information. |
 |  | | Return value: |  | | SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_NO_DATA, SQL_ERROR, or SQL_INVALID_HANDLE. |
 |  | | Word Index links for the SQLDriverConnect : |  | |
|
 |  | | Translate this page: |  | |  |  | | • |  | | Created: | 2002-03-21 20:31:29 | | Modified: | 2002-03-21 20:34:20 | Visited in last 7 days: 19 |
|
 |
 |
 |
 |
Copyright © 2001-2013
News2News, Inc.
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Privacy policy
|
 |
 |
 |
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.1.55-log), the Open Source standard SQL database,
AceHTML Freeware
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc. |
 |
 |
|
 |
 |
|
|