Export (0) Print Expand All  SqlConnection.ConnectionString
Property  Gets or sets the string used to open a SQL Server
database.  Namespace: System.Data.SqlClient Assembly:
System.Data (in system.data.dll)  public override string
ConnectionString { get; set;  /** @property */ public String
get_ConnectionString ()  /** @property */ public void
set_ConnectionString (String value)  public override function
get ConnectionString () : String  public override function set
ConnectionString (value : String)  Property Value  The
connection string that includes the source database name, and
other parameters needed to establish the initial connection. The
default value is an empty string.  Exception typeCondition   An
invalid connection string argument has been supplied, or a
required connection string argument has not been supplied.  The
ConnectionString is similar to an OLE DB connection string, but
is not identical. Unlike OLE DB or ADO, the connection string
that is returned is the same as the user-set ConnectionStr