Dela via


How to: Create a Database (SQL Server Management Studio)

This topic describes how to create a database by using SQL Server Management Studio.

To create a database

  1. In Object Explorer, connect to an instance of the SQL Server Database Engine and then expand that instance.

  2. Right-click Databases, and then click New Database.

  3. In New Database, enter a database name.

  4. To create the database by accepting all default values, click OK; otherwise, continue with the following optional steps.

  5. To change the owner name, click () to select another owner.

    Note

    The Use full-text indexing option is always checked and dimmed because, beginning in SQL Server 2008, all user databases are full-text enabled. For more information, see Configuring Full-Text Catalogs and Indexes for a Database.

  6. To change the default values of the primary data and transaction log files, in the Database files grid, click the appropriate cell and enter the new value. For more information, see How to: Add Data or Log Files to a Database (SQL Server Management Studio).

  7. To change the collation of the database, select the Options page, and then select a collation from the list.

  8. To change the recovery model, select the Options page and select a recovery model from the list.

  9. To change database options, select the Options page, and then modify the database options. For a description of each option, see Setting Database Options.

  10. To add a new filegroup, click the Filegroups page. Click Add and then enter the values for the filegroup.

  11. To add an extended property to the database, select the Extended Properties page.

    1. In the Name column, enter a name for the extended property.

    2. In the Value column, enter the extended property text. For example, one or more statements that describe the database.

  12. To create the database, click OK.