我如何创建添加数据mdf文件 [英] how do i create addition data mdf file

查看:461
本文介绍了我如何创建添加数据mdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的数据正在快速增长,现在我想在差异位置创建额外的MDF,以便在这个新的MDF文件中写入新数据。 / p>

请指导我如何做到这一点。




iffi

解决方案

以下是有关如何使用SSMS或T-SQL将数据文件添加到数据库的文档:

将数据或日志文件添加到数据库


为了确保将新数据写入新文件,您必须创建其他文件组,将新文件添加到这些文件组,然后从中移动所需的表PRIMARY文件组到不同位置的一个或多个新文件组。


以下是一些解释如何执行此操作的文章:

将表移动到不同的文件组

在SQL Server数据库文件组之间移动数据


希望有所帮助,


Hi,

I have data which is growing fast now i wan to create additional MDF in difference location so that new data should be written in this new MDF file.

pls guide how to i do that.


iffi

解决方案

Here is documentation on how to add data files to a database using SSMS or T-SQL:
Add Data or Log Files to a Database

In order to ensure new data is written to the new files, you will have to create additional File Groups, add the new files to those file groups, and then move desired tables from PRIMARY Filegroup to one or more of the new Filegroups in the different location.

Here are a couple of articles explaining how to do that:
Moving Tables to a Different File Group
Move data between SQL Server database Filegroups

Hope that helps,


这篇关于我如何创建添加数据mdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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