ASA Programming Guide
Adaptive Server Anywhere .NET Data Provider API Reference
AsaConnection class
Initializes an AsaConnection object. The connection must then be opened before you can carry out any operations against the database.
void AsaConnection( )
void AsaConnection( string connectionString )
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.
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();