SQL Server Check

Default file path

This is one of many SQL Server checks performed by our free sp_Check tools.

Learn More About Our sp_check Tools

Checks Performed

ID
Check
614
default backup path is on C: and more than 1 disk is on server
612
default data file path is on C: and more than 1 disk is on server
613
default data log path is on C: and more than 1 disk is on server

What’s the issue?

SQL Server has three instance level settings that control where new database files and backups are placed by default: the default data path, the default log path, and the default backup path. When SQL Server is installed with default options, these paths point to subfolders under the SQL Server program directory on the system drive (typically C:Program FilesMicrosoft SQL Server…).

This finding identifies instances where these defaults are still pointing to the C drive even though the server has additional drives intended for database storage. The condition is commonly seen on instances installed quickly without customizing the storage configuration during setup.

Why is this a problem?

Placing data files, log files, or backups on the C drive consumes space on the operating system volume, which is sized for Windows and SQL Server binaries rather than user data. If the C drive fills up, Windows itself can become unstable, paging fails, and the SQL Server service may stop or refuse to start, causing an outage that affects every database on the instance.

Beyond stability, mixing data and log files on the same drive eliminates the I/O performance benefits of separating sequential log writes from random data file activity. Backups stored on C also share the same physical disk as the live data, meaning a single drive failure or corruption event can destroy both the database and its backup at the same time.

These issues often hide until a database is created without an explicit path or until a developer or junior administrator uses default settings, at which point files land on C silently and grow unnoticed.

What should you do about this?

Review the current default paths by checking the Server Properties dialog in SSMS under the Database Settings page, or by querying SERVERPROPERTY(‘InstanceDefaultDataPath’), SERVERPROPERTY(‘InstanceDefaultLogPath’), and SERVERPROPERTY(‘InstanceDefaultBackupPath’). Compare each value against the drive layout of the server to identify which paths still reference the C drive.

Update the defaults to point to the appropriate dedicated drives, typically separate volumes for data, log, and backups based on your storage standards. The change can be made in SSMS through Server Properties or via T-SQL using xp_instance_regwrite to update the registry values, followed by a SQL Server service restart for the new defaults to take effect.

After changing the defaults, audit existing databases for any files still located on C and plan to relocate them during a maintenance window using detach and reattach, ALTER DATABASE … MODIFY FILE with a service restart, or backup and restore to the new location.

Read more…

Type

Reliability

Importance

Medium

sp_Checks