Saturday, May 25, 2013

Create New Site Collection in the New Content Database in SharePoint2010

If you want to create a new site collection in the specific database, there are several different options available in the SharePoint 2010.

From the central administration site, you can create the site collection in the specific database with the following workaround. The downside of this approach is you have to temporarily take down the all the content databases in the given web application except the database where you want to create the new site collection.


  • Create a new content database for the given web application (Central Administration -> Manage Content Databases)

  • Detach/remove the content databases except the new one (Central Administration -> Manage Content Databases)

  • Create the new site collection from the central admin (Central Administration -> Create Site Collection)

  • Attach/Add the offline content databases (Central Administration -> Manage Content Databases)


Better way to approach creating the new site collection in the specific content database is to use New-SPContentDatabase and New-SPSite PowerShell commands.

  • Step 1- Add New Content DB to the Web Application


New-SPContentDatabase -Name WSS_Content_Accounts -WebApplication     http://demosite:55555


  • Step 2- Create New Site Collection with Top Level Site Based on Team Site Template in the New Content DB


New-SPSite http://demosite:55555/sites/accounts -OwnerAlias “Jaydoshi\Administrator” -ContentDatabase WSS_Content_Accounts -Name “Account Sites” -Description “Account Sites Container” -Template “STS#0″

Hope This is Hopeful to you..

0 comments:

Post a Comment