5.6. DATABASE LAYOUT FOR PERFORMANCE AND RESTORABILITY

This section explains how to improve disk layout for performance and restorability.

When CREATE DATABASE is executed with no location specified, the default is to place all database files (data files, xxx.MDF, log files, xxx.LDF, and backup files, xxx.bak) on the same physical disk. That's because SQL Server doesn't know anything about your disk configuration or your preferences. But such a configuration gives poor performance, especially for an OLTP database, and it precludes complete recovery from data disk failure. Poor performance and poor restorability are very bad for a production database.

Placing data, index, log and backup files on the same disk, as in the default layout, has the ...

Get Transact-SQL Desk Reference 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.