You can use the procedures that are described in this article to create a new content database and attach it to a Web application.
In this article:
In this article:
- To add a content database to a Web application by using Central Administration
- To add a content database to a Web application by using Windows PowerShell
To add a content database to a Web application by using Central Administration
- Verify that the user account that is being used to perform this operation is a member of the Farm Administrators SharePoint group. If you are using Windows authentication to connect to SQL Server, the user account must also be a member the SQL Server dbcreator fixed server role on the SQL Server instance where the database will be created. If you are using SQL authentication to connect to SQL Server, the SQL authentication account that you specify when you create the content database must have dbcreator permission on the SQL Server instance where the database will be created.
- On the SharePoint Central Administration Web site, click Application Management.
- In the Databases section, click Manage content databases.
- On the Manage Content Databases page, click Add a content database.
- On the Add Content Database page:
- Specify a Web application for the new database.
- Specify a database server to host the new database.
- Specify the authentication method that the new database will use and supply an account name and password, if they are necessary.
Important: The account name and password must already exist as a SQL Server login. - Specify the name of the failover database server, if one exists.
- Specify the number of top-level sites that can be created before a warning is issued. By default, this is 9,000.
- Specify the total number of top-level sites that can be created in the database. By default, this is 15,000.
Note: For information about how to determine the number of top-level sites that the system can support, see Performance and capacity technical case studies (SharePoint Server 2010). - Click OK.
- Specify a Web application for the new database.
To add a content database to a Web application by using Windows PowerShell
- Verify that you meet the following minimum requirements: See Add-SPShellAdmin. If you are using Windows authentication to connect to SQL Server, the user account must also be a member the SQL Server dbcreator fixed server role on the SQL Server instance where the database will be created. If you are using SQL authentication to connect to SQL Server, the SQL authentication account that you specify when you create the content database must have dbcreator permission on the SQL Server instance where the database will be created.
- On the Start menu, click Administrative Tools.
- Click SharePoint 2010 Management Shell.
- At the Windows PowerShell command prompt, type the following command:
Where is the name of the content database to create and is the name of the Web application to which the new database is attached.New-SPContentDatabase -Name -WebApplication
For more information, see New-SPContentDatabase.