Calling the OpenConnection attribute function connects to the database.
Syntax | ||||
OpenConnection(ConnectionStr [, TimeOut]) | ||||
Return value | ||||
None | ||||
Parameter | ||||
Use |
Name |
Type |
Passing |
Description |
Required |
ConnectionStr |
String |
ByVal |
Connection string |
Optional |
TimeOut |
Long |
ByVal |
Waiting time to abort the connection attempt (default 15) |
The connection string depends on the database provider.
For connections via ODBC, the datasource name (DSN) and usually a username and password are required.
Example:
dsn=SCE; uid=xyz; pwd=aabbcc