Select the product you need help with
Description of a new command-line operation that you can use to repair content databases in Windows SharePoint Services 2.0 and SharePoint Portal Server 2003Article ID: 918744 - View products that this article applies to. On This PageSUMMARYThis article discusses a hotfix that you can apply that enables you to repair content databases in Microsoft Windows SharePoint Services 2.0. The hotfix introduces a new command-line operation that you can use with the Stsadm.exe command-line tool. This article describes how to obtain the hotfix. It also describes how to use the Stsadm.exe command-line tool with the new databaserepair command-line operation to detect and to delete orphaned items in content databases in Windows SharePoint Services 2.0. INTRODUCTIONThis article describes a new command-line operation in Windows SharePoint Services 2.0 that you can use to repair content databases. You can use the databaserepair command-line operation with the Stsadm.exe command-line tool to detect and to delete orphaned items in content databases. In certain situations, a content database that is used by Windows SharePoint Services 2.0 may become corrupted. The corrupted database may contain orphaned items. For example, a document may not have a parent document library. Or, a list may not have a parent Windows SharePoint Services 2.0 Web site. Before the new command-line operation that is described in this article was introduced, Windows SharePoint Services 2.0 did not have a tool that you could use to repair and to maintain the integrity of a content database. The procedure that is described in this article is a supported method that you can use to repair content databases. Modifying a content database directly is not supported. This update was first included in Windows SharePoint Services 2.0 Service Pack 3. For more information about the latest service pack for Windows SharePoint Services 2.0, click the following article number to view the article in the Microsoft Knowledge Base: 906795
(http://support.microsoft.com/kb/906795/
)
How to obtain the latest service pack for Windows SharePoint Services 2.0MORE INFORMATIONHow to obtain the hotfixThis issue is fixed in the Windows SharePoint Services post-Service Pack 2 Hotfix Package that is dated June 1, 2006. For more information, click the following article number to view the article in the Microsoft Knowledge Base:918743
(http://support.microsoft.com/kb/918743/
)
Description of the Windows SharePoint Services post-Service Pack 2 hotfix package: June 1, 2006Information about the hotfixThe hotfix adds a new databaserepair command-line operation that you can use with the Stsadm.exe command-line tool to repair a content database. You can use the Stsadm.exe command-line tool with the databaserepair operation to detect and to delete the following orphaned items in Windows SharePoint Services 2.0 content databases:
Things to considerConsider the following information before you perform the procedure that is described in this article to repair content databases in Windows SharePoint Services 2.0:
Step 1: Detect and delete orphaned items in Windows SharePoint Services 2.0 content databasesTo use the Stsadm.exe command-line tool with the databaserepair operation to detect and to delete orphaned items, follow these steps:
Step 2: Run the Spsadm.exe tool if you are running SharePoint Portal Server 2003If you are running SharePoint Portal Server 2003, run the Spsadm.exe command-line tool with the repairorphans command-line operation to repair orphaned items that may be present in the configuration database. The repairorphans operation removes and then reattaches the PortalSiteName_SITE content database. When you run the Spsadm.exe tool with the repairorphans operation, orphaned items that may exist for the PortalSiteName_SITE content database are removed from the configuration database.For more information about how to use the Spsadm.exe tool to clean up orphaned items in the configuration database, click the following article number to view the article in the Microsoft Knowledge Base: 918742
(http://support.microsoft.com/kb/918742/
)
Description of a new command-line operation that is available for the Spsadm.exe command line tool that you can use to clean up orphaned items in the configuration database in SharePoint Portal Server 2003
Step 3: Remove and then reattach the content databases on the virtual serverWhen you remove a content database from a virtual server, the Windows SharePoint Services 2.0 Web sites that are stored in that content database are not available until you reattach the content database to the virtual server. To avoid down time for users, perform this step during off-peak hours on a day and at a time when the server is not heavily used.To remove and then reattach the content database or content databases on the virtual server, follow these steps:
http://www.microsoft.com/downloads/details.aspx?familyid=47405143-F586-4941-92F5-048BF00CF332&displaylang=en&displaylang=en
(http://www.microsoft.com/downloads/details.aspx?familyid=47405143-F586-4941-92F5-048BF00CF332&displaylang=en&displaylang=en)
REFERENCESFor more information about the Stsadm.exe command-line tool, see the "Command-Line Operations" topic, the "Command-Line Parameters" topic, and the Command-Line-Properties" topic in the "Reference" chapter of the Microsoft Windows SharePoint Services 2.0 Administrator's Guide. To obtain the Microsoft Windows SharePoint Services 2.0 Administrator's Guide, visit the following Microsoft Web site:
http://www.microsoft.com/downloads/details.aspx?familyid=A637EFF6-8224-4B19-A6A4-3E33FA13D230&displaylang=en
(http://www.microsoft.com/downloads/details.aspx?familyid=A637EFF6-8224-4B19-A6A4-3E33FA13D230&displaylang=en)
PropertiesArticle ID: 918744 - Last Review: October 9, 2011 - Revision: 3.0
|


Back to the top








