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:
Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode
SQLConfigDataSource
..msdn    Add comment     W32 Constants      Translate this page
SQLConfigDataSource adds, modifies, or deletes data sources.
Code examples:
Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode
Declaration:
BOOL SQLConfigDataSource(
    HWND hwndParent,
    WORD fRequest,
    LPCSTR lpszDriver,
    LPCSTR lpszAttributes
);
FoxPro declaration:
DECLARE INTEGER SQLConfigDataSource IN odbccp32;
    INTEGER hwndParent,;
    INTEGER fRequest,;
    STRING  lpszDriver,;
    STRING  lpszAttributes

Parameters:
hwndParent
[in]
Parent window handle. The function will not display any dialog boxes if the handle is null.

fRequest
[in]
Type of request -- a predefined value.

lpszDriver
[in]
Driver description (usually the name of the associated DBMS) presented to users instead of the physical driver name.

lpszAttributes
[in]
List of attributes in the form of keyword-value pairs.
Return value:
The function returns TRUE if it is successful.
My comment:
When SQLConfigDataSource returns FALSE, an associated *pfErrorCode value can be obtained by calling SQLInstallerError.
Word Index links for the SQLConfigDataSource :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-02-03 10:25:51
Modified: 2003-02-03 10:29:06
Visited in last 7 days: 16
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.158.214.111)
2 sec.
4 sec.Banners
6 sec.Function: 'mmioOpen'
Function group: 'Windows Multimedia'
7 sec.Articles
9 sec.Function: 'mmioFlush'
Function group: 'Windows Multimedia'
11 sec.Updates
12 sec.Function: 'CryptGetProvParam'
Function group: 'Cryptography Reference'
16 sec.Function: 'AVIFileRelease'
Function group: 'Windows Multimedia'
18 sec.Function: 'HttpQueryInfo'
Function group: 'Internet Functions (WinInet)'
20 sec.Function: 'mixerSetControlDetails'
Function group: 'Windows Multimedia'
Google
Advertise here!