Tag: SharePoint Upgrade

SPContentDatabaseSequence cannot upgrade an object whose build version is too old

Today I was trying to do a database upgrade of SharePoint 2007 to SharePoint 2010, to do this Mount-SPContentDatabase CmdLet should be executed which upgrades the database, while trying to run it, I got the following error:

Mount-SPContentDatabase : Sequence [Microsoft.SharePoint.Upgrade.SPContentDatabaseSequence] cannot upgrade an object [SPContentDatabase Name=WSS_Content] whose build version [] is too old. Upgrade requires [] or higher.
At line:1 char:24
+ Mount-SPContentDatabase <<<<  -Name WSS_Content_Main_Portal -DatabaseServer d
+ CategoryInfo          : InvalidData: (Microsoft.Share…ContentDatabase:
SPCmdletMountContentDatabase) [Mount-SPContentDatabase], SPUpgradeExceptio
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletMountCon

After googling a little bit, I found out that the content database which I was to trying to upgrade was a backup before SharePoint 2007 SP2 was installed, check the version from SharePoint 2007 Central Administration, Operations, Servers in Farm (under topology and services), version should be minimum

This content database requires upgrade and could not be attached in this operation

I was trying to do a attach database upgrade from SharePoint 2007 to 2010 today and while trying to attach this database from SharePoint 2010 Central adminstration, I got the following error

This content database requires upgrade and could not be attached in this operation. Use either the [stsadm -o addcontentdb] command or [Mount-SPContentDatabase] cmdlet instead.

Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: 78ef63ce-f4c4-43bd-86ff-97031cae147b

So I googled as fast as I could for Mount-SPContentDatabase Parameters and found the following from Microsoft’s site (click here for parameter details)

Mount-SPContentDatabase [-Name] [-WebApplication] [-AssignmentCollection ] [-AssignNewDatabaseId ] [-ChangeSyncKnowledge ] [-ClearChangeLog ] [-Confirm []] [-DatabaseCredentials ] [-DatabaseServer ] [-MaxSiteCount ] [-UpdateUserExperience ] [-WarningSiteCount ] [-WhatIf []]

Stsadm equivalent of the same is (click here to parameter details)

stsadm.exe -o addcontentdb
[-databaseserver ]
[-databaseuser ]
[-databasepassword ]
[-sitewarning ]
[-sitemax ]