Article ID: 943345 - Last Review: March 30, 2009 - Revision: 3.0 How to defragment Windows SharePoint Services 3.0 databases and SharePoint Server 2007 databasesINTRODUCTIONThis article describes how to defragment the following Microsoft Windows SharePoint Services 3.0 databases and Microsoft Office SharePoint Server 2007 databases:
MORE INFORMATIONThe extent of the Microsoft SQL Server index fragmentation determines whether a fragmented database will be defragmented by an online defragmentation process or by an offline defragmentation process. In online defragmentation, only the SQL Server leaf pages are defragmented, not the SQL Server locked pages. In offline defragmentation, the locked pages and all the leaf pages are defragmented.
The following SQL Server script tries to perform an online defragmentation first then it switches to offline defragmentation where required. Important The following SQL Server stored procedure makes changes to Windows SharePoint Services 3.0 databases and SharePoint Server 2007 databases. This script must be run exactly as specified in this article. Changes that you make to SharePoint Server 2007 databases must follow the Support guidelines that are specified in the following Microsoft Knowledge Base article: 841057
(http://support.microsoft.com/kb/841057/
)
Support for changes to the databases that are used by Office server products and by Windows SharePoint Services
Note We recommend that you host the SharePoint Server 2007 databases on a computer that is running SQL Server 2005. We recommend that you monitor the level of fragmentation before and after you run this script. Schedule the script to run daily, weekly, or monthly, as appropriate for your situation. NOTE These steps will not be needed for WSS databases (content and config) after Windows SharePoint Services 3.0 SP2 if you are running Sql 2005. REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
932744
(http://support.microsoft.com/kb/932744/
)
Information about the Maintenance Plan Wizard in SQL Server 2005 and about tasks that administrators can perform against SharePoint databases
For more information about how to perform database maintenance, see the following whitepaper:
Database maintenance for Office SharePoint Server 2007 http://technet.microsoft.com/en-us/library/cc262731.aspx (http://technet.microsoft.com/en-us/library/cc262731.aspx)
| Article Translations
|
Back to the top
