Creates a ODBC data source.
CreateSQLDataSource(cDataSource, cDriver, nDataSourceType)
Parameters
- cDataSource
A list of attributes in the form of keyword-value pairs seperated by CHR(0).
E.g. "DSN=Personnel Data" + CHR(0) + "UID=Smith" + CHR(0) + "PWD=Sesame" + CHR(0) + "DATABASE=Personnel"
- cDriver
Driver name, a list of drivers can be retrieved with the ASQLDrivers function.
- nDataSourceType
One of the following values. DatasourceType Description ODBC_USER_DSN Creates a user data sources. ODBC_SYSTEM_DSN Creates a system data sources.
Return Value
.T. if the data source was created, .F. otherwise.
See Also
Reference
ASQLDataSources
ASQLDrivers
ChangeSQLDataSource
DeleteSQLDataSource
SQLCancelEx
SQLExecEx
SQLGetPropEx
SQLPrepareEx
SQLSetPropEx