SQL数据库和日志文件的X-copy。我们需要在完成X-copy之前分离mdf和ldf吗? [英] X-copy of SQL databases and log files. Do we need to detach the mdf and ldf before X-copy can be done?

查看:66
本文介绍了SQL数据库和日志文件的X-copy。我们需要在完成X-copy之前分离mdf和ldf吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SQL数据库和日志文件的X副本。 我们是否需要在完成X拷贝之前分离mdf和ldf?

X copy of SQL databases and log files.  Do we need to detach the mdf and ldf before X copy can be done?

我们希望将mdf和ldf从一个服务器复制到另一个网络。 网络在物理上是分开的,因此我们必须通过设备复制这些文件。 您是否建议使用X copy或SQL管理控制台中的其他选项将
文件复制到另一个 物理设备?

We want to copy the mdf and ldf from one server to another network.  The networks are physically separate so we have to copy these files via a appliance.  Do you recommend X copy or is there another option in SQL management console to copy the files to another  physical device?

我是否必须分离文件或只是使文件脱机?

Will I have to detach the files or just take the files offline?

复制的数据库将重新附加到目标SQL服务器上。

The copied databases will be reattached at the destination SQL servers.

dsk

推荐答案

SQL Server数据库引擎将数据库文件保存到整个时间,您无法复制这些文件。

SQL Server database engine holds the database files to whole time, you can not copy these files.

更好地使用备份&恢复,这是一种更安全的方式,可以在线完成:

备份和还原SQL Server数据库

Better use backup & restore, it's a more safe way and can be done online: Back Up and Restore of SQL Server Databases


这篇关于SQL数据库和日志文件的X-copy。我们需要在完成X-copy之前分离mdf和ldf吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆