 |
SQLConfigDataSource ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
SQLConfigDataSource adds, modifies, or deletes data sources. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2003-02-03 10:25:51 | | Modified: | 2003-02-03 10:29:06 | Visited in last 7 days: 32 |