Partilhar via


SPDatabase.ChangeDatabaseInstance Method (SPDatabaseServiceInstance)

Modifies the specified database service instance for each connection string that is used to access the database.

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

Syntax

'Declaration
Public Sub ChangeDatabaseInstance ( _
    newParent As SPDatabaseServiceInstance _
)
'Usage
Dim instance As SPDatabase
Dim newParent As SPDatabaseServiceInstance

instance.ChangeDatabaseInstance(newParent)
public void ChangeDatabaseInstance(
    SPDatabaseServiceInstance newParent
)

Parameters

See Also

Reference

SPDatabase Class

SPDatabase Members

ChangeDatabaseInstance Overload

Microsoft.SharePoint.Administration Namespace