Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.05 KB

SQLGetConfigMode.md

File metadata and controls

52 lines (34 loc) · 1.05 KB

Home

Function name : SQLGetConfigMode

Group: ODBC API - Library: odbc32


Retrieves 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 SQLGetConfigMode(
	UWORD * pwConfigMode);  

FoxPro declaration:

DECLARE INTEGER SQLGetConfigMode IN odbccp32;
	LONG @ pwConfigMode  

Parameters:

pwConfigMode [out] Pointer to the buffer containing the configuration mode.


Return value:

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


Comments:

The value in pwConfigMode can be:

  • ODBC_USER_DSN
  • ODBC_SYSTEM_DSN
  • ODBC_BOTH_DSN

See also SQLSetConfigMode function.