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)

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