all groups > sql server replication > june 2006 >
You're in the

sql server replication

group:

Snapshot agent doesn't pick new articles


Re: Snapshot agent doesn't pick new articles Hilary Cotter
6/30/2006 12:00:00 AM
sql server replication: How are you adding the new articles?

If you have a pull subscription you have to issue a call to
sp_refreshsubscriptions

If you have a push you have to do a call to sp_addsubscription as follows

sp_addsubscription
'publicationmame','NameOfObjectYouJustAdded','SubscriberName'


--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Snapshot agent doesn't pick new articles Tesh
6/30/2006 3:04:02 AM

Hi all,

I am running SQL Server 2000 sp4 with remote distribution server. I have
publications. When I adding new articles to the publications, the snapshot
agent doesn't pick up a new articles. When running the snapshot agent, it
will say snapshot was not generated because no subscription needed
Re: Snapshot agent doesn't pick new articles Tesh
6/30/2006 8:59:02 AM
Hi Hilary,
Thanks for the reply. I have run and got the following error messages. There
are more than one subscribers to the publication. I have used wizard to put
the article.


Server: Msg 14100, Level 16, State 1, Procedure sp_addsubscription, Line 240
Specify all articles when subscribing to a publication using concurrent
snapshot processing.


[quoted text, click to view]
Re: Snapshot agent doesn't pick new articles Hilary Cotter
6/30/2006 7:58:26 PM
Sounds like this option isn't supported for concurrent snapshots. How about
creating a separate publication for just this one article.

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Re: Snapshot agent doesn't pick new articles Tesh
7/3/2006 5:04:01 AM
I can create a separate publication and it all works fine. I don't want to do
this as it doesn't make sense to create a separate publication when I want to
add an article to a publication.

[quoted text, click to view]
Re: Snapshot agent doesn't pick new articles Rodrigo
7/4/2006 5:30:02 PM
When using concurrent snapshots, wich means that the snapshot won't lock the
tables while generating the snapshot.

You should run
EXEC sp_addsubscription @Subscriber = 'SubscriberName', @Destination_DB =
'DB at Subscriber', @Publication = 'Name Of Publication', @Article = 'ALL'

Even that you specify 'ALL' in the articles to subscribe, SQL will subscribe
the subscriber to the new article recently added.

Then try running the snapshot agent.
--
Rodrigo Acosta


[quoted text, click to view]
Re: Snapshot agent doesn't pick new articles Tesh
7/5/2006 7:13:01 AM
Hi Rodrigo,

Have tried your suggestion but got the following error.
Server: Msg 14058, Level 16, State 1, Procedure sp_addsubscription, Line 491
The subscription already exists.

any ideas ?

Regards


[quoted text, click to view]
Re: Snapshot agent doesn't pick new articles Raymond Mak [MSFT]
7/5/2006 1:34:57 PM
Hi Tesh,

I have to say that the restriction of disallowing the addition of a
subscription for a single article when the publication is configured to use
concurrent snapshot doesn't seem very valid in your scenario as that ended
up violating the spirit of the check (now you have an incomplete
subscription without the new article). That said, I have very little idea of
why the check is there in the first place and so I don't know whether we can
relax this restriction in the future or not. At the risk of getting myself
into trouble, 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.

Hope that helps,

-Raymond

[quoted text, click to view]

AddThis Social Bookmark Button