Home All Groups Group Topic Archive Search About

Move a table from filegroup??

Author
21 Oct 2005 1:35 PM
Tarek
Hi,
I created a table in a wrong filegroup. Is it possible to move it to another
filegroup? If yes how?
Do I need to drop the table and create it in the new filegroup or this can
be done online (like oracle's alter table t move ....).
Thanks in advance,

Tarek

Author
21 Oct 2005 1:52 PM
SQL
recreate the index on the new filegroup, this will move the whole table

http://sqlservercode.blogspot.com/

Show quote
"Tarek" wrote:

> Hi,
> I created a table in a wrong filegroup. Is it possible to move it to another
> filegroup? If yes how?
> Do I need to drop the table and create it in the new filegroup or this can
> be done online (like oracle's alter table t move ....).
> Thanks in advance,
>
> Tarek
Author
21 Oct 2005 4:05 PM
Jerry Spivey
Tarek,

Just to qualify SQL's statment - ensure this is the clustered index that you
are creating - a nonclustered index does not contain the data pages and
therefore will not *move* the table.

HTH

Jerry
Show quote
"SQL" <S**@discussions.microsoft.com> wrote in message
news:6AB9925F-D98D-4977-B66A-F15FD8407CA8@microsoft.com...
> recreate the index on the new filegroup, this will move the whole table
>
> http://sqlservercode.blogspot.com/
>
> "Tarek" wrote:
>
>> Hi,
>> I created a table in a wrong filegroup. Is it possible to move it to
>> another
>> filegroup? If yes how?
>> Do I need to drop the table and create it in the new filegroup or this
>> can
>> be done online (like oracle's alter table t move ....).
>> Thanks in advance,
>>
>> Tarek
Author
21 Oct 2005 2:29 PM
John Bell
Hi Tarek

Check out: http://tinyurl.com/78ovr

John

Show quote
"Tarek" wrote:

> Hi,
> I created a table in a wrong filegroup. Is it possible to move it to another
> filegroup? If yes how?
> Do I need to drop the table and create it in the new filegroup or this can
> be done online (like oracle's alter table t move ....).
> Thanks in advance,
>
> Tarek

AddThis Social Bookmark Button