We are upgrading from Project Server 2007 to Project Server 2010.
While Four Project Server databases upgraded successfully, the SharePoint Content database upgrade is failing with the following errors in eventvwr and ULS logs:
1. Unknown SQL Exception 8144 occurred. Additional error information from SQL Server is included below.Procedure or function proc_GetDatabaseInformation has too many arguments specified.
2. There is a compatibility range mismatch between the Web server and database "PWA_Content_80", and connections to the data have been blocked to due to this incompatibility. This can happen when a content database has not been upgraded to be within the compatibility range of the Web server, or if the database has been upgraded to a higher level than the web server. The Web server and the database must be upgraded to the same version and build level to return to compatibility range.3. Unknown SQL Exception 547 occurred. Additional error information from SQL Server is included below.The DELETE statement conflicted with the REFERENCE constraint "FK_Dependencies1_Objects". The conflict occurred in database "SharePoint2010_Config", table "dbo.Dependencies", column 'ObjectId'. The statement has been terminated.
3. I also got the following error which I fixed successfully to allow another run using the DROP INDEX IDX_16893_16892_AllUserData ON dbo.AllUserData
The index 'IDX_16893_16892_AllUserData' is dependent on column 'tp_DirName'.
ALTER TABLE DROP COLUMN tp_DirName failed because one or more objects access this column.
4. Powershell command Mount-SPContentDatabase returns the following error: Specified cast is not valid
5. In the Upgrade.log file I see the following:
[powershell] [SPContentDatabaseSequence] [DEBUG] [26/03/2014 07:10:35]: Validating event receiver assemblies referenced in content database PWA_Content_80 that are installed.
[powershell] [SPUpgradeSession] [ERROR] [26/03/2014 07:10:36]: Upgrade [SPContentDatabase Name=PWA_Content_80] failed.
[powershell] [SPUpgradeSession] [ERROR] [26/03/2014 07:10:36]: Exception: Specified cast is not valid.
[powershell] [SPUpgradeSession] [ERROR] [26/03/2014 07:10:36]: at System.Data.SqlClient.SqlBuffer.get_Byte()
at Microsoft.SharePoint.Upgrade.SparseColumnUpgradeUtility.FetchMultiRowListMetadata(SqlSession sqlsession, List`1& rglistinfo)
at Microsoft.SharePoint.Upgrade.SPContentDatabaseIntegrity.CheckListSchemaLimits()
at Microsoft.SharePoint.Upgrade.SPContentDatabaseSequence.ContentDatabaseDataIntegrityCheck()
at Microsoft.SharePoint.Upgrade.SPContentDatabaseSequence.PreUpgrade()
at Microsoft.SharePoint.Upgrade.SPUpgradeSession.Upgrade(Object o, Boolean bRecurse)
[powershell] [SPUpgradeSession] [DEBUG] [26/03/2014 07:10:36]: Elapsed time upgrading [SPContentDatabase Name=PWA_Content_80]: 00:00:01.
[powershell] [SPManager] [INFO] [26/03/2014 07:10:36]: Resetting the status of PersistedUpgradableObject: SPContentDatabase Name=PWA_Content_80 to Online.









