Jaa


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 2005 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.

  6. To enable full-text search on the database, select the Full-text indexing check box. For more information, see Full-Text Search Concepts.

  7. 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).

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

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

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

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

  12. 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.
  13. To create the database, click OK.

See Also

Concepts

Creating a Database (Database Engine)
Creating Filegroups

Other Resources

SQL Server Management Studio Tutorial

Help and Information

Getting SQL Server 2005 Assistance