SPDatabase.NormalizedDataSource property

Gets the normalized data source of the database.

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

Syntax

'Declaration
Public ReadOnly Property NormalizedDataSource As String
    Get
'Usage
Dim instance As SPDatabase
Dim value As String

value = instance.NormalizedDataSource
public string NormalizedDataSource { get; }

Property value

Type: System.String
The data source.

Remarks

A normalized data source includes the SQL Server name and instance as a SQL string, for example "MySqlServer\Instance0". This is useful when building a connection string.

See also

Reference

SPDatabase class

SPDatabase members

Microsoft.SharePoint.Administration namespace