Contents Index AsaConnection class BeginTransaction method

ASA Programming Guide
  Adaptive Server Anywhere .NET Data Provider API Reference
    AsaConnection class

AsaConnection constructors


Description 

Initializes an AsaConnection object. The connection must then be opened before you can carry out any operations against the database.

Syntax 1 

void AsaConnection( )

Syntax 2 

void AsaConnection( string connectionString )

Parameters 

connectionString    An Adaptive Server Anywhere connection string. A connection string is a semicolon-separated list of keyword-value pairs.

For a list of parameters, see Connection parameters.

Example 

The following statement initializes an AsaConnection object for a connection to a database named policies running on an Adaptive Server Anywhere database server named hr. The connection uses a user ID of admin with a password of money.

AsaConnection conn = new AsaConnection(
"uid=admin;pwd=money;eng=hr;dbn=policies" );
conn.Open();

Contents Index AsaConnection class BeginTransaction method