﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Change filegroups for existing table from Primary to FG_JJ / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 20 Jun 2013 06:15:00 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Change filegroups for existing table from Primary to FG_JJ</title><link>http://www.sqlservercentral.com/Forums/Topic1413762-391-1.aspx</link><description>Thank you for the response Andrew. There is no luck with indexed view replication. In order to have this working we went a different route. * We did straight Table --&amp;gt; Table replication. * On the destination created a view (with all the conversion date --&amp;gt; small datetime) on the destination table. At this point we did not care on the performance and had to get data moving. Reason for not looking into performance is we are planning to upgrade the DW to SQL 2012  that way there are no legacy data types.Thank you for looking into and throwing out suggestions.... </description><pubDate>Mon, 11 Feb 2013 10:49:26 GMT</pubDate><dc:creator>saqlainkhan</dc:creator></item><item><title>RE: Change filegroups for existing table from Primary to FG_JJ</title><link>http://www.sqlservercentral.com/Forums/Topic1413762-391-1.aspx</link><description>Any luck with this?Andrew</description><pubDate>Sun, 10 Feb 2013 12:31:57 GMT</pubDate><dc:creator>Andrew Pruski</dc:creator></item><item><title>RE: Change filegroups for existing table from Primary to FG_JJ</title><link>http://www.sqlservercentral.com/Forums/Topic1413762-391-1.aspx</link><description>If the table has a clustered index on it you could rebuild the table, moving the clustered index to the new filegroup. That will move your data.I would not think that replication will break but I would test this first.Andrew</description><pubDate>Wed, 30 Jan 2013 15:27:29 GMT</pubDate><dc:creator>Andrew Pruski</dc:creator></item><item><title>Change filegroups for existing table from Primary to FG_JJ</title><link>http://www.sqlservercentral.com/Forums/Topic1413762-391-1.aspx</link><description>SQL Server: SQL 2008 r2 1)Is there a way to change the FileGroup for a sql table having 16m records from Primary to (for instance) FG_ITIf 1 is possible then i would need help on what will be the best approach for the following scenario:[b]Sever A:[u][/u][/b]It has an Indexed View for a base table that has a File Group IT_JJ. In the past we setup Indexed View replications BUT with with the source table having a file group pointing to Primary.Using tsql for creating logbased replication there is an option in sp_addarticle  @schema_option  and use the following option (i have to yet try this option out..never done this)0x40000 (Replicates filegroups associated with a partitioned table or index.)[b]Server B: [u][/u][/b]This has file group name FG_JJIf 1. is true and i did change the filegroup on the Destination table, will replication break?Help would be greatly appreciated.</description><pubDate>Wed, 30 Jan 2013 13:45:38 GMT</pubDate><dc:creator>saqlainkhan</dc:creator></item></channel></rss>