Creating Databases

Database creation is a relatively straightforward operation that you can perform by using T-SQL statements or SSMS. Because the data and log files are created at the time the database is created, the time it takes for the database to be created depends on the size and number of files you specify when you create the database. If there is not enough disk space to create any of the files specified, SQL Server returns an error, and none of the files are created.

Note

Enhancements that were added in SQL Server 2005 and still exist in SQL Server 2008 have reduced the amount of time it takes to create a database. The reduction in creation time is attributed to a change in the way the database files are initialized. The initialization ...

Get Microsoft® SQL Server 2008 R2 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.