Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere .NET 2.0 API Reference » SAConnectionStringBuilder class » SAConnectionStringBuilder constructors

SAConnectionStringBuilder() constructor Next Page

SAConnectionStringBuilder(String) constructor

Initializes a new instance of the SAConnectionStringBuilder class.


Visual Basic

Public Sub New( _
ByVal connectionString As String _


public SAConnectionStringBuilder(
string connectionString


Restrictions: The SAConnectionStringBuilder class is not available in the .NET Compact Framework 2.0.


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.

SAConnectionStringBuilder conn = new SAConnectionStringBuilder("UID=admin;PWD=money;ENG=hr;DBN=policies" );
See also