Using Win32 functions in Visual FoxPro Image Gallery
ODBC API
..msdn
SQLAllocEnv
SQLAllocHandle
SQLBindCol
SQLBrowseConnect
SQLConfigDataSource
SQLConnect
SQLCreateDataSource
SQLDataSources
SQLDisconnect
SQLDriverConnect
SQLDrivers
SQLExecDirect
SQLFetch
SQLFreeEnv
SQLFreeHandle
SQLGetConfigMode
SQLGetConnectAttr
SQLGetDiagRec
SQLGetEnvAttr
SQLGetFunctions
SQLGetInfo
SQLGetInstalledDrivers
SQLGetPrivateProfileString
SQLInstallerError
SQLManageDataSources
SQLNativeSql
SQLRowCount
SQLSetConfigMode
SQLSetEnvAttr
SQLTables
Code examples:
Establishing connection using the SQLDriverConnect
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:
Establishing connection using the SQLDriverConnect
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-03-21 20:31:29
Modified: 2002-03-21 20:34:20
Visited in last 7 days: 15
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.178.153)
12 sec.Function: 'CreateWindow'
25 sec.Function: 'GetClipboardSequenceNumber'
38 sec.All Functions
53 sec.Function: 'CryptDestroyKey'
1.08 min.Function: 'RegEnumValue'
1.3 min.Function: 'GetMappedFileName'
1.5 min.
Function group: 'Synchronization'
1.7 min.
Function group: 'GDI+ PathGradient Brush'
1.88 min.Function: 'GetSystemInfo'
2.12 min.Function: 'CeFindAllFiles'
Google
Advertise here!