A list of products available on this site
Documentation for XtraMania's xtras
Prices and links to the online store
Xtras, PDFs, samples
Have a question? Ask us!
Contacts
Logo. www.xtramaina.com  
Home Search E-mail
ADOxtra Reference/cnn.Open()

cnn.Open()

Syntax

bSuccess=cnn.Open(connectionString,userID,password,options)

Parameters

connectionString
Optional. String value that contains connection information. See the cnn.ConnectionString property for details on valid settings.
  
userID
Optional. String value that contains a user name to use when establishing the connection.
  
password
Optional. String value that contains a password to use when establishing the connection.
  
options
Optional. Integer value that determines how the connection will be established, whether this method should return after (synchronously) or before (asynchronously) the connection is established. It may be one of the ConnectOptionEnum constants.

Returns

True (1) if function completed successfully, false (0) otherwise.

Description

Calls the Open() method of the wrapped ADODB.Connection object. Using the Open method on a Connection object establishes the physical connection to a data source. After this method successfully completes, the connection is live and you can issue commands against it and process the results.
Use cnn.adAsyncConnect option to connect asynchronously. It is useful when connecting over busy LAN to MS SQL server. In this case check cnn.state property to determine whether connection succeeded.

Site homeSearchContact author © Eugene Shoustrov. www.xtramania.com