Article ID: 272705 - Last Review: March 18, 2004 - Revision: 4.2

INF: Default Data and Log Directory Display Blank by Default After You Install SQL Server 2000

System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
This article was previously published under Q272705
Expand all | Collapse all

SUMMARY

After you install SQL Server 2000, when you open the SQL Server Properties dialog box by right-clicking the server name in Enterprise Manager, under the Database Settings tab, the path for Default data directory and Default Log directory are blank.

MORE INFORMATION

By default, the paths for both database default locations, that is, data and log, are blank. They are blank because the registry keys for the defaults are not present during setup. If the paths are blank, a CREATE DATABASE statement uses the \Mssql\Data directory (on the drive on which SQL Server was installed) as the default location for the data and log files. After you enter the default data and log directory information in this screen, the relevant registry keys are created, and the CREATE DATABASE statement then uses the default directories specified.

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.


The information for the default directory locations are stored in the following registry keys:

Default Instance
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\DefaultData

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\DefaultLog



Named Instance
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instancename\MSSQLServer\DefaultData

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instancename\MSSQLServer\DefaultLog

APPLIES TO
  • Microsoft SQL Server 2000 Standard Edition
Keywords: 
kbinfo KB272705