Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.01 KB

SQLSetConfigMode.md

File metadata and controls

52 lines (34 loc) · 1.01 KB

Home

Function name : SQLSetConfigMode

Group: ODBC API - Library: odbc32


Sets the configuration mode that indicates where the Odbc.ini entry listing DSN values is in the system information.


Code examples:

How to retrieve list of system DSNs (Data Source Name) with parameters

Declaration:

BOOL SQLSetConfigMode(
	UWORD wConfigMode);  

FoxPro declaration:

DECLARE INTEGER SQLSetConfigMode IN odbccp32;
	LONG wConfigMode  

Parameters:

wConfigMode [in] The installer configuration mode.


Return value:

The function returns TRUE if it is successful, FALSE if it fails.


Comments:

The value in wConfigMode can be:

  • ODBC_USER_DSN
  • ODBC_SYSTEM_DSN
  • ODBC_BOTH_DSN

See also SQLGetConfigMode function.