SQLServerCentral.com / SQL Server 2005 / SS2K5 Replication / Replicate Indexed View as a Table / Latest PostsInstantForum.NET v2.9.0SQLServerCentral.comhttp://www.sqlservercentral.com/Forums/notifications@sqlservercentral.comSun, 02 Aug 2015 12:46:27 GMT20RE: Replicate Indexed View as a Tablehttp://www.sqlservercentral.com/Forums/Topic348632-291-1.aspx[quote][b]Malik (3/2/2007)[/b][hr]i know I can replicate views to table (only indexed views) and i know i can use a query to replicate to table. But my question is HOW? I could select "indexed view logbased" in SQL Server 2000 when setting up replication to replicate to a table but it's not available in SQL Server 2005.[/quote]Malik, you cannot (so far as I can tell) do that through the GUI or Wizards, but you can do it through scripting and stored procedures.After you create most of your publication, add the indexed view using @Type = 'Indexed View logbased'On trick you can use to get the Gui to do most of the work, is have it generate the script to add the indexed view, but don't let it actually run it. Instead take the script to SSMS and change the @type parameter from the default of "indexed view schema only" to "indexed View logbased".Fri, 07 Nov 2008 17:56:55 GMTtimothyawisemanRE: Replicate Indexed View as a Tablehttp://www.sqlservercentral.com/Forums/Topic348632-291-1.aspxi know I can replicate views to table (only indexed views) and i know i can use a query to replicate to table. But my question is HOW? I could select "indexed view logbased" in SQL Server 2000 when setting up replication to replicate to a table but it's not available in SQL Server 2005.Fri, 02 Mar 2007 09:46:00 GMTMalik-273753RE: Replicate Indexed View as a Tablehttp://www.sqlservercentral.com/Forums/Topic348632-291-1.aspx<P>You can replicate views to table...</P><P>or you can use a query too to replicate to table...</P><P>Check the BOL topic "Publishing Data and Database Objects " and "<SPAN id=nsrTitle>Filtering Published Data"</SPAN></P><P><SPAN></SPAN> </P><P> </P>Thu, 01 Mar 2007 22:27:00 GMTMohammedUReplicate Indexed View as a Tablehttp://www.sqlservercentral.com/Forums/Topic348632-291-1.aspx<P>Guys,</P><P>Does anyone know how I could replicate an Indexed View so that it ends up as a Table (not a view)? After setting up the replication I get the following error message:</P><P>"Unable to replicate a view or function because the referenced objects or columns are not present on the Subscriber. "</P><P>Again I don't want to replicate it as a view but as a Table. I can't find any option in SQL Server 2005 which I could change to do this. Any help will be greatly appreciated.</P><P><FONT size=1><FONT size=2>Thanks.</FONT></P></FONT>Thu, 01 Mar 2007 13:31:00 GMTMalik-273753