Attempting to move a SharePoint site using Powershell cmdlet Move-SPSite and getting the following error:
Invalid object name ‘WSS_Content.dbo.AllSites’.
This error occurs because the database schema between the source database and the target database is different. In my case, the source database was hosted on SQL Server 2008 R2, and the destination database was on SQL Server 2012 SP3. I solved the problem as follows:
- Create a new content database on the source SQL Server.
- Use Move-SPSite cmdlet to move your SharePoint site into the new DB.
- Using SQL Server Management Studio, back up the new content DB to a file and copy it to the destination SQL Server.
- Restore the database on the destination SQL Server.