Share 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)

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