In most of the times we will use PowerShell commands to
create a site collection, also we can easily specify the database name that we
want to point to that particular site collection using PowerShell.
New-SPsite: is used to create to a top level site URL
-OwnerAlias: is the owner of that site collection
-Template: is used to create a template type based on requirement
-Name: is the name of our site collection
-Description: is to give description about our site
collection
Creating Site Collection Command
New-SPsite -Url http://dotnetsharepoint.com/sites/sharepoint
-OwnerAlias domain\username -Template "STS#0" -Name "site
name" -Description "description about the site”
Creating Site Collection with particular database Command
New-SPsite -Url http://dotnetsharepoint.com/sites/sharepoint
-OwnerAlias domain\username -ContentDatabase databasename -Template
"STS#0" -Name "site name" -Description "description
about the site”