kwizcom banner advertisement

Move Site Collection to Another Content Database using PowerShell

Requirement: Found a SharePoint Site collection growing in size over a period of time and wanted to move the SharePoint 2013 site collection to another content database.

Solution: Use the PowerShell Cmdlet Move-SPSite to move site collection from one content database to another. Here is how: First, Identify the target content database to move your site collection. You can create new content database with New-SPContentDatabase cmdlet. Next, Run Move-SPSite cmdlet with site collection URL and database name parameters.

Syntax:
Move-SPSite <Site-Collection-URL> –DestinationDatabase "<Database-Name>"
Example:
Move-SPSite "http://intranet.crescent.com/sites/ops" –DestinationDatabase "SP13_Intranet_Content08"
Here is our script in action:
move site collection to another content database sharepoint using powershell
Tips: To find the current database of the site collection, use: Get-SPSite "Site-collection-url" | Select ContentDatabase


Tags: move sharepoint site collection to new content database, sharepoint 2013 move site collection to different database, sharepoint move site collection to another database powershell
Move Site Collection to Another Content Database using PowerShell Move Site Collection to Another Content Database using PowerShell Reviewed by Salaudeen Rajack on July 02, 2015 Rating: 5

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.