Share via


SPDatabase.ServiceInstance Property

Gets an instance of the SQL service that owns the database.

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

Syntax

'Declaration
Public ReadOnly Property ServiceInstance As SPDatabaseServiceInstance
    Get
'Usage
Dim instance As SPDatabase
Dim value As SPDatabaseServiceInstance

value = instance.ServiceInstance
public SPDatabaseServiceInstance ServiceInstance { get; }

Property Value

Type: Microsoft.SharePoint.Administration.SPDatabaseServiceInstance
An SPDatabaseServiceInstance object that represents the SQL service instance.

See Also

Reference

SPDatabase Class

SPDatabase Members

Microsoft.SharePoint.Administration Namespace