f$ADOConnect
f$ADOConnect
An ADO connection is established with this function. A connection string is required for establishing this connection.
Syntax: | ConnectNo = f$ADOConnect(Connectstr,User,Password,[Option]) | ||
| Argument | Type | Meaning |
| Connectstr | String | Connection string |
| User | String | Valid user name for the database |
| Password | String | User's password |
Optional: | Option | Integer | An option can also be entered with the connection, if desired. -1 (default) 16: asynchronous connection |
Result: | Integer | Status of the connection: Higher than or equal to 0 : identifier for access attempts to this ADO connection -1: connection could not be made. | |
Example: | Channel = f$ADOConnect ('Provider=sqloledb;Data Source=Server1;Initial Catalog=Salesmanager ','sa'‚' ') | ||