LOTUS CONNECTORS


ConnectTo method
Example

Connects to a data source.

Defined in

ODBCConnection

Syntax

status = odbcConnection. ConnectTo( dataSourceName$ [ , userID$ [ , password$ ]] )

Parameters

dataSourceName$


userID$
password$
Return value
Usage

Use to establish a connection to a data source. The source must already be registered in the ODBC Driver Manager. This method does not automatically register data sources.

Errors

Cannot find named data source (DBstsCANF)

Unable to connect (DBstsCCON)

Unable to get user ID and password (DBstsACCS)

Events

BeforeConnect

AfterConnect

BeforeConnectTo

AfterConnectTo

Example
See Also