DBConnect Action

Establishes a connection to a data source.

Use

The DBConnect action establishes a physical connection to an ADO or DDM database. After this action successfully completes, the connection is live and you can issue commands against it and process the results.

When you have concluded your operations over an open connection, use the DBClose action to terminate the connection and free any associated system resources.

Parameters

Connection  -  (Required)

A name that you assign to the connection object that represents the connection to the data source. The connection will be referred to by this name in all subsequent DB actions. For example, your Connection name might be "CustDBConnection".

Server  -  (Required)

The type of data source to which you are connecting. Use one of the pre-defined Server constants.

Connection String - (Required)

This parameter consists of semi-colon separated name/value pairs that specify the database or server and all relevant connection properties. The contents of the connection string can vary, depending upon the data source or server that is used for the connection.

Each name/pair value is formatted as 'name=value'. For example:

'Provider=Microsoft.Jet.OLEDB.4.0;DataSource=@test\crm.mdb'.

Clicking the prompt button will open the Data Link Properties window. This tool will automatically create the Connection String string for you based on the values entered. See below for a more detailed description of Data Link Property window.

See Also

DBDisconnect Action | DBOpen Action | DBClose Action | DBFind Action | DBMove Action | DBAddNew Action | DBBeginTrans Action | DBCancelUpdate Action | DBCommitTrans Action | DBDelete Action | DBRollbackTrans Action | DBSeek Action | DBUpdate Action | ConnectionString property | Data Access | ConnectionString Property


© 2004-2021 looksoftware. All rights reserved.