SPDatabase.ChangeDatabaseInstance Method (String)
Modifies the database service instance with the specified name 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 ( _
databaseServiceInstance As String _
)
'Usage
Dim instance As SPDatabase
Dim databaseServiceInstance As String
instance.ChangeDatabaseInstance(databaseServiceInstance)
public void ChangeDatabaseInstance(
string databaseServiceInstance
)
Parameters
databaseServiceInstance
Type: System.StringThe name of the database service instance.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | databaseServiceInstance is empty or null . |
Remarks
This method refreshes the local configuration database cache immediately after updating the specified database service instance.