ConnectionString property

Description

A database connection string.

Syntax

string ConnectionString

Access

Read-write

Implements

IDbConnection.ConnectionString

Usage

Example

The following statements set a connection string to connect to an Adaptive Server database called pubs2 running on the server mango and opens the connection.

AseConnection conn = new AseConnection( “Data Source=mango; Port=5000; UID=sa; PWD=''; Database='pubs2'; " ): conn.Open();