[Solution] how to upgrade the website set content database

Source: Internet
Author: User

After the SharePoint application is upgraded through the patch, some problems may occur due to the low database version, such as the failure to delete the website. To solve this problem, you only need to execute the following command in SharePoint 2010 management shell:

$ Contentdb = Get-spcontentdatabase | where-object {$ _. Name-match "wss_content"} upgrade-spcontentdatabase-identity $ contentdb

However, when you execute this command, an error is reported, such as the following error message:

Database [wss_content] contains a website with an ID of [8a9d7f2e-0ccb-4fb6-b561-efd2a0419665] And a URL of [/], whose ID has been associated with another database in the website diagram (ID for [d9371285-151b-4065-ac37-59d80a6276ed], name: [wss_content]) join. Consider deleting one of websites with conflicting IDs.

The reason for Sharepoint on my machine is that two top-level website sets with different ports are created. I deleted the website set of another port and then executed this command. (Some careful friends may guess that the filter "-match" wss_content "in the command is too wide, which leads to matching of two content database instances. This is not the reason. If two database instances are matched, other errors are reported .)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.