all groups > sql server replication > may 2007 >
You're in the

sql server replication

group:

Replacing a view in merge


Replacing a view in merge David C
5/15/2007 3:05:33 PM
sql server replication:
We have SQL 2005 and I need to update a view used in a publication. The
views are in a separate pub so it should be pretty easy. My thought is that
I run sp_dropmergearticle, update the view and then run sp_addmergearticle.
Am I correct? Also, will the subscribers get the new publication/snapshot
when synching? Thanks.

David

Re: Replacing a view in merge David C
5/16/2007 12:00:00 AM
But the users have limited rights. Isn't this a problem in this solution?
Or is that requirement only to run the sp on the publication? Thanks.

David
[quoted text, click to view]

RE: Replacing a view in merge Paul Ibison
5/16/2007 1:02:01 AM
I'd use sp_addscriptexec. Simply because it avoids the need for a new
snapshot of all the articles.
Rgds,
Paul Ibison
Re: Replacing a view in merge Paul Ibison
5/16/2007 6:28:00 AM
Yes - just run it on the publisher and it'll go down to the subscribers on
synchronization.
HTH,
Paul Ibison
Re: Replacing a view in merge David C
5/16/2007 2:35:59 PM
Thank you.
[quoted text, click to view]

AddThis Social Bookmark Button