远程复制SQL Server数据库 [英] Copy SQL Server Databases Remotely
本文介绍了远程复制SQL Server数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将一台服务器上的一个数据库复制到下一个?我使用SQL Server 2005.在过去,我使用任务 - >备份然后还原到新的数据库。但是我的服务器与数据库是满的,我不能删除任何东西,SQL Server只出现允许备份到本地机器。
How do I copy one database on one server to the next? I am using SQL Server 2005. In the past I used Tasks -> Backup then Restore to the new database. But my server with the database is full and I can't delete anything and SQL Server only appears to allow backups to the local machine.
有一个简单的方法
推荐答案
您可以直接在网络共享上使用T-SQL进行备份:
You can just make the backup using T-SQL directly on a network share:
BACKUP DATABASE MyDatabase TO DISK = '\\AnotherServer\SomeShare\MyDatabase.bak'
如果你喜欢使用SQL Server Management Studio:这也是可能的,但不如T-SQL版本那么容易,
If you prefer to use SQL Server Management Studio: that's possible as well, but not as easy as the T-SQL version,
看看这个:
- Backup and Restore SQL Server Database to a network shared drive
- SQL Server backup and restore to network drive
这篇关于远程复制SQL Server数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文