简体   繁体   English

在其他服务器上还原数据库

[英]Restore Database on Different Server

I have backup (.bak) on one server and I want to restore the database on other server on Lan.. My concern is that when I run restore by connecting to remote sql server then it tries to find the .bak file on the remote server, but actually file resides on the server from which I am connecting to the remote server. 我在一台服务器上有备份(.bak),我想在Lan上的另一台服务器上还原数据库。我担心的是,当我通过连接到远程SQL Server运行还原时,它将尝试在远程服务器上找到.bak文件。服务器,但实际上文件位于我连接到远程服务器的服务器上。

Is there some way around to this problem that I can restore database without copying the file on the remote server?? 有没有解决此问题的方法,我可以还原数据库而无需在远程服务器上复制文件?

If you use MS SQL Server you can map network drive or use system share. 如果使用MS SQL Server,则可以映射网络驱动器或使用系统共享。 Detailed info . 详细信息

You could instead of using a .bak, run a dtsx to export all the data in your database. 您可以代替使用.bak而是运行dtsx来导出数据库中的所有数据。 Just create the schema on the server your going to send the data. 只需在要发送数据的服务器上创建架构。 Right click on the origin database -> tasks -> export data. 右键单击原始数据库->任务->导出数据。

This is just an alternative, I hope its of any use. 这只是一种选择,我希望它能有任何用处。

Cheers. 干杯。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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