Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.