﻿<?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 High Availability  / Replicate a new table without taking a snapshot / 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>Tue, 18 Jun 2013 01:40:41 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Replicate a new table without taking a snapshot</title><link>http://www.sqlservercentral.com/Forums/Topic1417878-1549-1.aspx</link><description>I could not get it to work through using the GUI.  It would still prompt that a snapshot was needed.  However, I was able to script it.  I did have to make @pre_creation_cmd = 'none', but I also had to run the command sp_addsubscription with @sync_type = 'replication support only'.  Here are the scripts with generic names.USE [PublicationDB]EXEC sp_addarticle @publication = N'Publication', @article = N'Table', @source_owner = N'dbo',	@source_object = N'Table', @type = N'logbased', @description = N'', @creation_script = N'',	[b]@pre_creation_cmd = N'none'[/b], @schema_option = 0x000000000803509F, @identityrangemanagementoption = N'manual',	@destination_table = N'Table', @destination_owner = N'dbo', @status = 24, @vertical_partition = N'false',	@ins_cmd = N'CALL [dbo].[sp_MSins_Table]', @del_cmd = N'CALL [dbo].[sp_MSdel_Table]',	@upd_cmd = N'SCALL [dbo].[sp_MSupd_Table]'GOUSE [PublicationDB]EXEC sp_addsubscription @publication = N'Publication', @subscriber = N'Subscriber',	@destination_db = N'SubscriberDB', @subscription_type = N'Push', [b]@sync_type = N'replication support only',[/b]	@article = N'Table', @update_mode = N'read only', @subscriber_type = 0</description><pubDate>Mon, 18 Feb 2013 10:26:25 GMT</pubDate><dc:creator>sudonjn</dc:creator></item><item><title>RE: Replicate a new table without taking a snapshot</title><link>http://www.sqlservercentral.com/Forums/Topic1417878-1549-1.aspx</link><description>Thank you.  I will try that.</description><pubDate>Thu, 14 Feb 2013 09:02:46 GMT</pubDate><dc:creator>sudonjn</dc:creator></item><item><title>RE: Replicate a new table without taking a snapshot</title><link>http://www.sqlservercentral.com/Forums/Topic1417878-1549-1.aspx</link><description>Easy, peasy.  When you create the article, specify "None" for @pre_creation_cmd (when using the sproc sp_addarticle).  If you are using the GUI, when adding the article, go into "Article Properties" and scroll down to "Action if name is in use" and select "Keep existing object unchanged"</description><pubDate>Sun, 10 Feb 2013 20:04:34 GMT</pubDate><dc:creator>happycat59</dc:creator></item><item><title>RE: Replicate a new table without taking a snapshot</title><link>http://www.sqlservercentral.com/Forums/Topic1417878-1549-1.aspx</link><description>You are correct in that if I remove the article from the publication and add it back once renamed, a snapshot of only that table will be taken.  I am trying to avoid taking a 350GB snapshot, and more-so, I am trying to have as little downtime as possible.  It will take too long to create the snapshot and move that data to the replicated table.</description><pubDate>Fri, 08 Feb 2013 13:58:04 GMT</pubDate><dc:creator>sudonjn</dc:creator></item><item><title>RE: Replicate a new table without taking a snapshot</title><link>http://www.sqlservercentral.com/Forums/Topic1417878-1549-1.aspx</link><description>you can try adding newtable/ article to the existing publication by recreating the snapshot for that single article if you using transactional replication</description><pubDate>Fri, 08 Feb 2013 13:38:17 GMT</pubDate><dc:creator>penu.v8</dc:creator></item><item><title>Replicate a new table without taking a snapshot</title><link>http://www.sqlservercentral.com/Forums/Topic1417878-1549-1.aspx</link><description>I have a 350 GB table that is replicated, and I need to rename.  This will require replication to be stopped on this table.  Is it possible to add a table to a publication without requiring a snapshot?  You can do this when setting up a new publication, but I cannot figure out how to do it when adding an article to an existing publication.  I do not want to create another publication for only this table.</description><pubDate>Fri, 08 Feb 2013 12:44:05 GMT</pubDate><dc:creator>sudonjn</dc:creator></item></channel></rss>