Re: SQL2005 sp_addsubscription not same as 2000

Tech-Archive recommends: Speed Up your PC by fixing your registry



Chris,

if you add a new table to an existing publication using sp_addarticle when
you try to subscribe to that newly added article from an existing
subscription, using sp_addsubscription, the error you mention may be
received. This applies when the existing publication set up with concurrent
snapshot option and means that you can't synchronize subscriptions for such
publications without a complete resynch.
There are 2 unofficial workarounds: (a) you can circumvent the check by
specifying @reserve = 'internal' when you add the subscription for the new
article and the snapshot agent should generate snapshot for the new article
after that and (b) you could change the immediate_sync property in
syspublications to 0 (see sp_changepublication).

Other more official workarounds including changing the sync_method from
'concurrent' to either 'database snapshot' (enterprise edition only) and
'native' (which locks table during snapshot generation). Change the
sync_method will force a reinitialization of all your subscriptions at this
point. Alternatively you could create another publication and use this
instead.


Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .


.



Relevant Pages

  • Re: @post_snapshot_script
    ... deployed subscriptions. ... Looking for a SQL Server replication book? ... I have a transactional publication in SQL 2000. ... Then when I run the snapshot agent, ...
    (microsoft.public.sqlserver.replication)
  • Re: @post_snapshot_script
    ... but use sp_addscriptexec to run the permissions script on all unc ... deployed subscriptions. ... I have a transactional publication in SQL 2000. ... Then when I run the snapshot agent, it only includes the one table in the ...
    (microsoft.public.sqlserver.replication)
  • Re: altering a column of a published table (trans repl)
    ... I dropped the subscriptions to the table to alter, ... publication, and added the subscriptions to the publications. ... ALTER TABLE Orders_2 ALTER COLUMN ... All MUCH easier in SQL Server 2005 of course - the Alter ...
    (microsoft.public.sqlserver.replication)
  • Re: adding articles
    ... By setting the immediate_sync property to 0, the snapshot agent should only ... generate files for articles with uninitialized subscriptions. ... data for all articles in your publication. ...
    (microsoft.public.sqlserver.replication)
  • Re: Huge number of generations for a single article in Merge Repli
    ... Hilary Cotter ... "Jonathan Ainsworth" wrote in ... > As we have active subscriptions, in order to remove this table from the ... > publication I'd need to drop the publication, ...
    (microsoft.public.sqlserver.replication)