Database Files and Filegroups

Databases in SQL Server 2008 span at least two, and optionally several, database files. There must always be at least one file for data and one file for the transaction log. These database files are normal operating system files created in a directory within the operating system. These files are created when the database is created or when a database is expanded.

Each database file has the following set of properties:

A logical filename—This name is used for internal reference to the file.

A physical filename—This name is the actual physical pathname of the file.

An initial size—If no size is specified for primary data file, its initial size, by default, is the minimum size required to hold the contents of ...

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.