简体   繁体   中英

How to copy database to another server onto a specific disk in SQL Server

Help me please, and excuse me for my English.

I need to translate a database from a server to other, but in a specific disk (disk H:) - how to do this?

I have already done backup, but I have no to copied the database on the disk H:

INFORMATION

  • OS: Windows 10
  • Server OS: Windows Server 2016
  • DB: Microsoft SQL Server 2014

Thanks in advance.

1- Take backup from source server using Restore option and restore to destination server using Restore Database option.

2- Right Click on Database select on -> Generate script Choose Option - All Tables/Objects Click on Advance from set scripting option Make sure you have selected Schema & Data in Types of Data To Script

Select other options also as per your need.

Then Execute this generated script on destination server change path accordingly as per your need.

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