简体   繁体   English

将数据库从单个mdf还原到多个mdf数据库

[英]Restore DB from single mdf to multiple mdf DB

I have a Database that has 800GB single mdf file and I want to restore the Database to that has multiple mdfs. 我有一个具有800GB单个mdf文件的数据库,我想将该数据库恢复到具有多个mdfs的数据库。

How can i restore single mdf file database to multiple mdf file database? 如何将单个mdf文件数据库还原到多个mdf文件数据库?

You can't via the RESTORE command. 您无法通过RESTORE命令。

You need to restore, then create extra filegroups and files, then rebuild the clustered indexes changing the target filegroup. 您需要还原,然后创建额外的文件组和文件,然后重建群集索引以更改目标文件组。 Each filegroup has one (or more, but I would not have more then 1) ndf files which then achieves what you want. 每个文件组都有一个(或多个,但我不会超过1个)ndf文件,然后可以实现所需的功能。

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

相关问题 从MDF文件还原数据库,丢失的LDF和数据库未完全关闭 - Restore DB from MDF file, lost LDF and DB was not cleanly shutdown 如何从 2008R2 中包含多个 mdf 文件的单个 bak 文件中恢复数据 - How to restore data from single bak file which contain multiple mdf file in 2008R2 无法从 C# 表单应用程序连接到本地数据库 (mdf) - Unable to connect to a Local DB (mdf) from C# form application 设置用于备份和还原SQL Server数据库的指令(更改.mdf和.log文件) - Instructions set for backup and restore of SQL Server's DB (changing .mdf and .log file) 如何使用T-SQL或.net代码将Mdf / ldf数据库文件转换为.bak文件(db restore) - how to convert Mdf/ldf database files to .bak file (db restore) using T-SQL or .net code SQL Server还原错误:文件“db.mdf”的目录查找失败 - SQL Server Restore Error: Directory lookup for the file “db.mdf” failed Sql Server收缩临时db mdf和ndf - Sql Server Shrinking temp db mdf and ndf 如何备份 - 恢复.mdf数据库 - How to backup - restore .mdf database C#连接到没有服务器的MSSQL .mdf DB - C# connect to MSSQL .mdf DB without Server 什么是连接到本地数据库文件(.mdf)的连接字符串 - What is the connection string to connect to local db file (.mdf)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM