Copy SQL Server Databases Remotely

 ̄綄美尐妖づ 提交于 2019-12-11 05:47:39

问题


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.

Is there an easy way to do this?


回答1:


You can just make the backup using T-SQL directly on a network share:

BACKUP DATABASE MyDatabase TO DISK = '\\AnotherServer\SomeShare\MyDatabase.bak'

If you prefer to use SQL Server Management Studio: that's possible as well, but not as easy as the T-SQL version,

Take a look at this:

  • Backup and Restore SQL Server Database to a network shared drive
  • SQL Server backup and restore to network drive


来源:https://stackoverflow.com/questions/7424015/copy-sql-server-databases-remotely

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!