Database Property

The Database property of the SqlConnectionString class gets the value of the Initial Catalog or Database argument from the connection string.

Property Value

The Initial Catalog or Database argument of the connection string.

Remarks

The properties of the SqlConnectionString correspond to the name/value pairs that make up a .NET Framework Data Provider for SQL Server connection string.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security