Change the default backup folder in SQL Server

Source: Internet
Author: User
Tags microsoft sql server mssql management studio sql server management sql server management studio backup

Problem

When you install SQL Server, the installation path is generally as follows: C:\Program Files\Microsoft SQL Server\mssql.2\mssql. There are also folders of data files and backup files in this directory. In SQL Server Management Studio, you can change the default location of data and log files in all new databases, but you cannot change the default directory for backups. Can I change the default directory for backups so that I don't have to specify a directory every time I make a backup?

Expert answers

These default data files, log files, and backed-up directories are stored in the system registry. As already mentioned, you can change the default data and log directories by using SQL Server Management Studio, right click on the server name and select Properties to open the directory to the Database Settings page shown below:

But if you search all the pages in the database settings, you won't find anything that shows the default backup directory. To find these, we need to view them in the registry.

If we open the registry through Regedit or some other tool and browse to the registration entry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\mssql.2\mssqlserver or similar to your SQL Server instance's registry entry, Then we will see the following information. The following high brightness row shows the default directory for the backup in this instance.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.