首页 > 技术文章 > How To Create SharePoint 2010 Site Collection In Its Own DB

Roy_Cao 2013-11-28 14:05 原文

在SharePoint 2010中可以使用Management Shell 为新建的Site Collection 创建自己的DB.

在 Shell中执行如下命令:

1. $w = get-spwebapplication  http://yoursite     (yoursite为你所要新建的SiteCollection 所在WebApplication中的SiteCollection)

2. New-SPContentDatabase "Your DB Name" -DatabaseServer "Your DB Server" -WebApplication $w

3. New-SPSite  YourSiteUrl –OwnerAlias  Domain\OwnerAccount   -Name "Site Title" -Template "STS#0"

推荐阅读