Thursday, June 28, 2012

Refresh Site Collections in Config Database

Synchronizes the content database with the configuration database of the farm with respect to what site collections actually exist in the content database.  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.


$db = Get-SPDatabase | where {$_.Name -eq "DatabaseName"}
$db.RefreshSitesInConfigurationDatabase()

Tuesday, June 26, 2012

Database Maintenance Best Practices

http://www.sqlskills.com/BLOGS/KIMBERLY/post/Database-Maintenance-Best-Practices-Part-I-e28093-clarifying-ambiguous-recommendations-for-Sharepoint.aspx

Thursday, June 21, 2012