Move site collection to different database Move-SPSite

Handy command in Sharepoint 2010

Move-SPSite <SiteURL> -DestinationDatabase <DBName>

Before you execute this command be aware that:

1. this will put your site offline when running. Users will get error when browsing the site:

          The website declined to show this webpage (403)

2.You will have to perform IISRESET afterwards

3.But cheer up, command executes suprisinly quick when comparing with execution of Restore-SPSite. For 7 GB site it took only 5 minutes.



Leave a Reply