I am migrating sharepoint 2007 publishing site to sharepoint 2010. These are the steps I have followed
- Backup the content database from the SP2007 machine.
- Restore that database in sql server 2008 (SP2010 machine).
- Create a new web application in SP2010 and create a site collection type of publishing template.
- I have run the following stsadm command for adding the content database to the web application stsadm -o addcontentdb -url http://testsite -databasename WSS_Content_test
But I am getting the Invalid object name sites error. Could anyone help me to resolve this issue ?