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

sql server replication

group:

Dynamic Filtering



Re: Dynamic Filtering Paul Ibison
6/29/2005 12:00:00 AM
sql server replication: HOST_NAME() should work fine with pull subscriptions. Anyway whether push or
pull, you can use -HOSTNAME value in the merge agent's job commandline to
override the returned value. Often you want to filter on something that has
more relevance to the business this way. For an image of setting the
HOSTNAME take a look at the article on www.replicationanswers.com/articles.
It relates to SQL 2005 but the job image is still relevant.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Dynamic Filtering Saeed Abd Al-Ati
6/29/2005 8:22:02 AM
Hi,

I have one publisher and two subscribers, i want to filter the data
dynamiclly before sending it to the subscriber(s), my question is, how to
know the current subscriber when the merge agent implement the filtering
criteria, i tried to use Host_Name() function to know the current subscriber
but it returns the value of the publisher.

If you have any idea(s) or alternative way or any additional configuration i
have to do for this, please let answer me ASAP

Re: Dynamic Filtering Saeed Abd Al-Ati
6/30/2005 2:25:02 AM
Thanks Paul,

I've set the HOST_NAME() property for each subscriber merge agent to be its
host name and then worked fine and the data being filtered between servers as
i want.

Thanks again

[quoted text, click to view]
AddThis Social Bookmark Button