How can I move a table to another filegroup in MS SQL Server?

后端 未结 8 1994
星月不相逢
星月不相逢 2020-12-07 13:04

I have SQL Server 2008 Ent and OLTP database with two big tables. How I can move these tables to another filegroup without service int

8条回答
  •  一整个雨季
    2020-12-07 13:51

    This excerpt from SQL Server Books Online says it all: "Because the leaf level of a clustered index and the data pages are the same by definition, creating a clustered index and using the ON partition_scheme_name or ON filegroup_name clause effectively moves a table from the filegroup on which the table was created to the new partition scheme or filegroup." (Source - http://msdn.microsoft.com/en-us/library/ms188783.aspx) from (http://www.mssqltips.com/sqlservertip/2442/move-data-between-sql-server-database-filegroups/)

    as already said by other friends like accepted answer by marc_s following is the screenshot gives you another way to do it using SSMS GUI.

    please note that you can move to another filegroup easily of the index property in storage tab enter image description here

提交回复
热议问题