如何将表移到SQL Server 2008中的特定文件组 [英] How do i move a table to a particular FileGroup in SQL Server 2008
本文介绍了如何将表移到SQL Server 2008中的特定文件组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚创建了一个辅助文件组,希望将一些表移到该文件组上,然后将其设置为只读.
I've just created a secondary filegroup and wish to move some tables over to it and then make it read-only.
我不确定该怎么做?
我只使用ALTER blah blah TO MyFileGroup
吗?
推荐答案
类似的方法应该有所帮助:
Something like this should help:
CREATE UNIQUE CLUSTERED INDEX PK_YourTableName
ON dbo.YourTableName(YourPKFields)
WITH (DROP_EXISTING = ON) ON [NewFilegroup]
这篇关于如何将表移到SQL Server 2008中的特定文件组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文