MS SQL Database Default Location

This may be useful if you have want to view or change the default location of the database files on an installed instance.

View or change the default locations for database files

  1. In Object Explorer, right-click on your server and click Properties.
  2. In the left panel on that Properties page, click the Database settings tab.
  3. In Database default locations, view the current default locations for new data files and new log files. To change a default location, enter a new default pathname in the Data or Log field, or click the browse button to find and select a pathname.

NOTE: After changing the default locations, you must stop and start the SQL Server service to complete the change.

Validate the current location

SELECT DataPath = CONVERT(sysname, SERVERPROPERTY(‘InstanceDefaultDataPath’)), LogPath = CONVERT(sysname, SERVERPROPERTY(‘InstanceDefaultLogPath’));

View or change the default Backup locations for database


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.