dbTalk Databases Forums  

Change merge filter

microsoft.public.sqlserver.replication microsoft.public.sqlserver.replication


Discuss Change merge filter in the microsoft.public.sqlserver.replication forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Barquero
 
Posts: n/a

Default Change merge filter - 01-12-2005 , 04:09 PM






I like to change a filter of a article. I'm using sp_changemergefilter but I
need the name of the filter.
I have the names of the filters with sp_helpmergefilter but only give me the
join filters.
I like to know if sp_changemergefilter only works with join filters?
And how can I change a filter that is not join filter?


Thanks for your help

David Barquero



Reply With Quote
  #2  
Old   
Hilary Cotter
 
Posts: n/a

Default Re: Change merge filter - 01-13-2005 , 08:36 AM






I think you want to use sp_changemergearticle, something like this:

exec sp_changemergearticle @publication = 'Tier1', @article = 'MergeTable',
@force_invalidate_snapshot = 1, @force_reinit_subscription = 1, @property =
'subset_filterclause', @value = 'locationID=1'

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"David Barquero" <davbarquero (AT) hotmail (DOT) com> wrote

Quote:
I like to change a filter of a article. I'm using sp_changemergefilter but
I
need the name of the filter.
I have the names of the filters with sp_helpmergefilter but only give me
the
join filters.
I like to know if sp_changemergefilter only works with join filters?
And how can I change a filter that is not join filter?


Thanks for your help

David Barquero





Reply With Quote
  #3  
Old   
David Barquero
 
Posts: n/a

Default Re: Change merge filter - 01-13-2005 , 10:09 AM



Hilary Thanks for your help

I try to do it like you say me, but when I'm runing the SP it's give me
this error

Server: Msg 21416, Level 16, State 1, Procedure sp_changemergearticle, Line
272
Property 'subset_filterclause' of article 'TomaFisica' cannot be changed.

Why I Can't change the filterclause?

"Hilary Cotter" <hilary.cotter (AT) gmail (DOT) com> wrote

Quote:
I think you want to use sp_changemergearticle, something like this:

exec sp_changemergearticle @publication = 'Tier1', @article =
'MergeTable',
@force_invalidate_snapshot = 1, @force_reinit_subscription = 1, @property
=
'subset_filterclause', @value = 'locationID=1'

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"David Barquero" <davbarquero (AT) hotmail (DOT) com> wrote in message
news:ujr53NP%23EHA.1408 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I like to change a filter of a article. I'm using sp_changemergefilter
but
I
need the name of the filter.
I have the names of the filters with sp_helpmergefilter but only give me
the
join filters.
I like to know if sp_changemergefilter only works with join filters?
And how can I change a filter that is not join filter?


Thanks for your help

David Barquero







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.