can i use Mount-SPContentDatabase command to attach site collection.
can i use Mount-SPContentDatabase command to attach site collection.
SharePoint 2010 - Setup, Upgrade, Administration and Operationshttp://social.technet.microsoft.com/Forums/en-US/sharepointadminprevious/thread/a852253b-2009-4b06-af0c-a9be23370f20Question45/1/2013 10:21:18 PM5/3/2013 1:42:54 PMWelcome to the SharePoint 2010 deployment forum. Use this forum to discuss Setup, Upgrade, Administration and Operations topics for SharePoint 2010. Deployment questions about SharePoint 2013 can be answered here: http://social.technet.microsoft.com/Forums/en-US/sharepointadmin and for versions prior to 2010 here: http://social.technet.microsoft.com/Forums/en-US/sharepointadminlegacy12
I am trying to migrate SharePoint 2007 to SharePoint 2010. So i took sql backup of a sitecollection from SharePoint 2007 and restored in Sql of SharePoint 2010.
now i want to attach the newly restored database to the new site collection i create in SharePoint 2010.
when i google i got a link where you can use powershell command "Mount-SPContentDatabase"
and attach it to the web application but i want to attach to a sitecollection in already existing web application.
Actually you'd use Move-SPSite to move a site collection from one content database to another.
M.M: your description of the problem is a little confusing as it appears you might be trying to mix terms. If all you want to do is upgrade a 2007 site collection to 2010 and have it available in your existing web application then Mount-SPContentDatabase
is sufficient. If you're wanting to take an existing 2007 site collection, upgrade it to 2010 and then move the site collection as a child site of an existing site collection then you'll need to use Mount-SPContentDatabase to upgrade the site collection and
then Export-SPWeb and Import-SPWeb to move the site collection; however, you'll likely hit tons of issues with the migrated site (if the import works at all).
Gary Lapointe, Blog: http://blog.falchionconsulting.com/, Twitter: http://twitter.com/glapointe Aptillon Inc.: http://www.aptillon.com