Method OdbcManager():addUserDSN() Professional

Adds a user data source.

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

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

Description

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

Feedback

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.