Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 905 Bytes

SQLCreateDataSource.md

File metadata and controls

49 lines (34 loc) · 905 Bytes

Home

Function name : SQLCreateDataSource

Group: ODBC API - Library: odbc32


SQLCreateDataSource displays a dialog box with which the user can add a data source.


Code examples:

How to display a dialog box with which the user can add a data source (DSN)

Declaration:

BOOL SQLCreateDataSource(
	HWND hwnd,
	LPSTR lpszDS
);  

FoxPro declaration:

DECLARE INTEGER SQLCreateDataSource IN odbccp32;
	INTEGER hwnd,;
	STRING  lpszDS
  

Parameters:

hwnd [Input] Parent window handle.

lpszDS [Input] Data source name. lpszDS can be a null pointer or an empty string.


Return value:

Returns TRUE if the data source is created.