Initializes an SAConnection object. The connection must then be opened before you can perform any operations against the database.
Visual Basic Public Sub New( _ ByVal connectionString As String _ )
C# public SAConnection( string connectionString );
connectionString A SQL Anywhere connection string. A connection string is a semicolon-separated list of keyword=value pairs.
For a list of connection parameters, see Connection parameters.
The following statement initializes an SAConnection object for a connection to a database named policies running on a SQL Anywhere database server named hr. The connection uses the user ID admin and the password money.
SAConnection conn = new SAConnection( "UID=admin;PWD=money;ENG=hr;DBN=policies" ); conn.Open();
|Discuss this page in DocCommentXchange.
Send feedback about this page using email.
|Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|