SQL Server uses a network drive to recover a database

Source: Internet
Author: User

1. The company has more than one virtual machine, because the company provides the machine hard disk is always not big enough ... So I thought of the way to use a mapped network drive for backup recovery work.

The main ways to learn are as follows:

0. First open sqlcmd Start command line interface

1. Open xp_cmdshell to add network drive access:

Method:

Turn on advanced options

' Show advanced Options ',1

After Setup, reconfigure again.

Reconfigurego

To open xp_cmdshell permissions

' xp_cmdshell ',1goreconfigurego

2. Increase SQL Server access to the shared path:

' net use G: \\10.110.6.142\d$ 1qaz2wsx?/user:administrator '

Then use SSMs to recover.

The ability to access the specific path.

SQL Server uses a network drive to recover a database

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.