Share via

SPContentDatabase.RefreshSitesInConfigurationDatabase method

Synchronizes the content database with the configuration database of the farm with respect to what site collections actually exist in the content database.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Public Sub RefreshSitesInConfigurationDatabase
Dim instance As SPContentDatabase

public void RefreshSitesInConfigurationDatabase()


Ensures that all site collections in the content database are registered in the configuration database and removes any site collection references in the configuration database if the site collection does not exist in the content database.

See also


SPContentDatabase class

SPContentDatabase members

Microsoft.SharePoint.Administration namespace