all groups > sql server replication > august 2004 >
You're in the

sql server replication

group:

filtering


filtering larry
8/27/2004 8:08:09 AM
sql server replication: Running SQL 2K & Win 2K

I have 18 remote servers that I want to horizontally
filter data to based on the location of the server. The
names of the servers are STORE01SERVER to STORE18SERVER.
I know I can create a publication for each of the remote
servers and then subscribe to the publication from that
location, but that will not be feasible when I add
another group of 25 servers.

So my question is....

How do I pass the filter criteria/parameter to a
publication and get the correct data??

Will this pull all the rows, then delete the rows that do
not meet the criteria?

Any suggestions??

Thanks,
Larry....

Re: filtering larry
8/27/2004 8:42:04 AM
I am using transactional replication. Can't I use the
filter option on trans repl? If so, where do I specify
Re: filtering larry
8/27/2004 8:56:57 AM
Re: filtering Paul Ibison
8/27/2004 4:36:51 PM
Larry,
for merge replication this is the exact type of scenario dynamic filters are
designed for. In your case the filter needed is HOST_NAME() which will
distinguish between STORE01SERVER and STORE02SERVER ...
HTH,
Paul Ibison

[quoted text, click to view]

Re: filtering Paul Ibison
8/27/2004 4:54:36 PM
Larry,
such options are not available for transactional replication. If you want to
mimic it, you can use transformable subscriptions in which case you can have
a distinct DTS package per subscriber. This is not ideal, but it is slightly
less wok than having multiple publications.
You might be able to have the same DTS package run on the subscriber and
filter using the computername there, but I haven't set this up.
HTH,
Paul Ibison

AddThis Social Bookmark Button