Re: changing table owner name- sp_changemergearticle
- From: amritha.prabhu@xxxxxxxxx
- Date: 2 Jun 2006 06:26:07 -0700
This works fine when executed by mentioning individual query statement
for each and every table.
But when I insert the result set of all the user table names and owner
names into a cursor and then use the sp_changemergearticle inside the
cursor by fetching each table name , owner name it doesnt throw up any
error. but its not updating the destination owner names :(.. any clues
...??? Am i missing something here ?
Thanks in advance,
A
amritha.prabhu@xxxxxxxxx wrote:
Thanks for the quick update....its working ....
Regards,
A.
Hilary Cotter wrote:
It works for me, here is what I use:
sp_changemergearticle 'pubs2','authors','destination_owner','newownername'
,@force_invalidate_snapshot=1,@force_reinit_subscription=1
--
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
<amritha.prabhu@xxxxxxxxx> wrote in message
news:1149248072.423451.171750@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have a db with a few tables which has owner than dbo. When i use this
db for merge replication it creates tables with owner as dbo on the
subscriber.
In order to avoid this i went to the article properties on the
publisher and changed the destination owner to the 'other user' not
'dbo' and created the subscription again it worked fine.
Now my question is how can i change the article settings through the
stored proc "sp_changemergearticle". I tried using this but its saying
incorrect syntax when i execute it.? I am new to this field.. Can any
one help me out on this..
If an example could be given it could be of great help.
Thanks,
A
.
- References:
- changing table owner name- sp_changemergearticle
- From: amritha . prabhu
- Re: changing table owner name- sp_changemergearticle
- From: Hilary Cotter
- Re: changing table owner name- sp_changemergearticle
- From: amritha . prabhu
- changing table owner name- sp_changemergearticle
- Prev by Date: Re: Replication of tables with Foreign Keys
- Next by Date: Re: Replication generating snapshot - locking?
- Previous by thread: Re: changing table owner name- sp_changemergearticle
- Next by thread: Re: Replication generating snapshot - locking?
- Index(es):
Relevant Pages
|