Name

sql_config_data_sources — Configures a remote DSN as in the DSN attribute string

Synopsis

vector sql_config_data_sources ( in driver varchar ,
in type varchar ,
in attrib varchar );

Description

This function creates or modifies a user or system data source based on the semicolon separated list of DSN attributes.

The type argument must be either 'system' or 'user'.

Configures the data source by calling SQLWriteDSNToIni/SQLWritePrivateProfileString/SQLSetConfigMode from the ODBC Installer API.

Parameters

driver is the Driver name passed to SQLWriteDSNToIni.

Return Types

Returns the ODBC status code.