共用方式為


SPDatabase.NormalizedDataSource Property

Gets the normalized data source of the database.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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