none
Site collection in a particular content database RRS feed

  • Dotaz

  • How can we make sure to create a site collection in a particular content database?

    Arun Prakash

    pondělí 3. června 2013 7:03

Odpovědi

  • Hi Arun, 

    There is no direct option from SharePoint UI to select content database while creating Site collection, However you can do that using power shell .. here is the code..

    $url = "http://test/sites/Communities"
    
    $ContentDatabase = "OSCommunities_Content"
    $WebsiteName = "Communities"
    $WebsiteDesc = "Communities site"
    $Template = "STS#1"
    
    
    $PrimaryLogin = "domain\abg-spprodadmin"
    $PrimaryDisplay = "admin"
    $PrimaryEmail = "admin@test.com"
    
    New-SPSite -Url $url –ContentDatabase $ContentDatabase -Name $WebsiteName –Description $WebsiteDesc  -Template $Template -OwnerAlias $PrimaryLogin –OwnerEmail $PrimaryEmail

    • Označen jako odpověď Arun Prakash.G pondělí 3. června 2013 8:04
    pondělí 3. června 2013 7:15
  • You can create the site collection in a specific database using PowerShell. See this link for a rather nice explanation: http://social.technet.microsoft.com/Forums/en-US/sharepointadminprevious/thread/52470012-c2df-4cfc-a0cf-8137806bdc77/

    • Označen jako odpověď Arun Prakash.G pondělí 3. června 2013 8:04
    pondělí 3. června 2013 7:06

Všechny reakce