Share via


SPDatabase.DatabaseConnectionString property

Gets the connection string that is used to connect to the database.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

public string DatabaseConnectionString { get; }

Property value

Type: System.String
A string that contains the connection string.

See also

Reference

SPDatabase class

SPDatabase members

Microsoft.SharePoint.Administration namespace