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)

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.String

    The 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.

See also

Reference

SPDatabase class

SPDatabase members

ChangeDatabaseInstance overload

Microsoft.SharePoint.Administration namespace