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
newParent
Type: Microsoft.SharePoint.Administration.SPDatabaseServiceInstanceAn SPDatabaseServiceInstance object that represents the database service instance.