How do i move a table to a particular FileGroup in SQL Server 2008

前端 未结 3 1316
甜味超标
甜味超标 2020-12-14 19:18

I\'ve just created a secondary filegroup and wish to move some tables over to it and then make it read-only.

I\'m not sure how to do this?

do i just use the

3条回答
  •  旧时难觅i
    2020-12-14 19:35

    Something like this should help:

    CREATE UNIQUE CLUSTERED INDEX PK_YourTableName 
        ON dbo.YourTableName(YourPKFields)
        WITH (DROP_EXISTING = ON) ON [NewFilegroup]
    

提交回复
热议问题