Method OdbcManager():addSystemDSN() Professional

Adds a system data source.

:addSystemDSN(<cDriver>, <cAttr>) --> lSuccess
The name of the driver. Installed drivers can be obtained by calling :getDrivers().
Data source attributes, in form of named attribute/value pairs: DBQ=test. The name of the data source must be passed as DSN=<cName>.

Returns .T. if the data source could be added successfully. If .F. is returned, call :getLastError() to retrieve extended error information.


This method adds a data source (DSN) to the group of system data sources. System data sources are accessible from every user. The DSN can later be used to connect to a database, using DacSession():new().


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.