SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Replication (2008)
 Add article to pub, subscribers ignore snapshot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MuadDBA
Aged Yak Warrior

USA
628 Posts

Posted - 09/24/2013 :  10:01:00  Show Profile  Reply with Quote
I have an existing transactional publication that I want to add a new article to. So, I added the article with the following command:

<code>
exec sp_addarticle @publication = N'My_Publication',
@article = N'Filter_Control_Type', @source_owner = N'dbo',
@source_object = N'Filter_Control_Type', @type = N'logbased', @description = N'', @creation_script = N'', @pre_creation_cmd = N'drop', @schema_option = 0x0000000008FF5EDF, @identityrangemanagementoption = N'manual',
@destination_table = N'Filter_Control_Type', @destination_owner = N'dbo', @status = 24, @vertical_partition = N'false',
@ins_cmd = N'CALL [dbo].[sp_MSins_dboFilter_Control_Type]',
@del_cmd = N'CALL [dbo].[sp_MSdel_dboFilter_Control_Type]',
@upd_cmd = N'SCALL [dbo].[sp_MSupd_dboFilter_Control_Type]'

exec sp_refreshsubscriptions @publication = N'My_Publication'
</code>

(Names have been changed to protect the guilty)

I see -- briefly -- in the details of the distribution agent, that the subscribers say "The initial snapshot is not yet available" but when I run the snapshot agent (which creatres a snapshot if the one article I want) the subscribers (all 4 of them) completely ignore it and go about their business delivering transactions. They do that until I add a test record to my new article, in which case they immediately start complaining that the insert, update, and delete stored procs are not present. I can also tell the snapshot hasn't applied because the schema on the subscriber is not updated with the NOT FOR REPLICATION property on its identity columns.

Does anyone have any experience with this, or see a flaw in how I implemented this new article? I am using SQL 2008 (10.0) publishers and subscribers. Enterprise Edition.

Thanks in advance for any help.
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.67 seconds. Powered By: Snitz Forums 2000