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
'Declaration
Public ReadOnly Property DatabaseConnectionString As String
Get
'Usage
Dim instance As SPDatabase
Dim value As String
value = instance.DatabaseConnectionString
public string DatabaseConnectionString { get; }
Property value
Type: System.String
A string that contains the connection string.