简体   繁体   中英

SQL Server Management Studio 2005 - Change Default Directory for Backup Location

Using MS SQL Server Management Studio 2005 - To Restore a Database:

  • Restore Database
  • (*) From Device:
  • Click " ... " Button
  • Backup media: File
  • Click " Add " Button
  • Popup Window: " Locate Backup File "

That window Defaults to C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\Backup

How do I configure MS SQL Server Management Studio to look in D:\\data\\databases\\
instead of looking in C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\Backup ?

在注册表中,编辑HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft SQL Server\\MSSQL.1\\MSSQLServer\\BackupDirectory值以指向d:\\data\\databases

It's stored in the registry.

On my computer, it's at...

HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Microsoft SQL Server\\MSSQL.1\\MSSQLServer

There is a registry key named BackupDirectory

I suspect the registry key will be in a different location for you (I have 64 bit vista). I did a search in my registry for 'MSSQL.1\\Backup' to find it.

For convenience, here's a reg file entry to do this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer]
"BackupDirectory"="D:\\data\\databases\\"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM