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

sql server replication

group:

How to configure multiple subscriber to same publisher using filte


Re: How to configure multiple subscriber to same publisher using f Paul Ibison
6/7/2005 12:00:00 AM
sql server replication:
Is this the latest CTP? I'm reinstalling it tonight and will get back to
you.
Rgds,
Paul Ibison

[quoted text, click to view]

How to configure multiple subscriber to same publisher using filte Ki
6/7/2005 4:09:22 AM
Hi,

I have a base table in publisher db. I have a column, using which i want to
filter it and replicate it to certain dbs. how do i dynamically do it ?

Like for eg, consider this table :

ID Project name center
1 A NY
2 B LON
3 C PAR

now, i want to filter using the column "center". if center = 'NY', then i
must direct it to a particular subscriber. if it is "LON" then it must be
directed to someother subscriber. also, i must accomplish this using merge
replication

for my requirement, i am not able to use multiple publishers to accomplish
it. i must use one publisher, with a filter which varies dynamically
depending on the subscriber.

please explain how i can accomplish this.

PS : I'm new to databases. sorry if this question is very basic
Re: How to configure multiple subscriber to same publisher using f Ki
6/7/2005 7:29:14 AM
Hi Paul,

thanks for the reply. i'm able to understand the idea behind your
explanation. but i'm using SQL Server 2005, Beta 2. i'm not sure abt the
agents. i'm using the gui. can u pls explain how i shd do it using yukon, in
the gui ?


[quoted text, click to view]
Re: How to configure multiple subscriber to same publisher using filte Paul Ibison
6/7/2005 2:01:19 PM
Ki,
this question is not at all basic :)
You can use dynamic filtering in merge replication. Set up the filter as
center = HOST_NAME(). In the merge agent, before initializing, edit the
command-line parameters and add -HOSTNAME NY for the NY subscriber and so on
for the others.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Re: How to configure multiple subscriber to same publisher using f Ki
6/8/2005 3:00:48 AM
i'm not sure whether i'm having the latest ctp. it says beta 2 in the splash
screen. this is the info i found in Help\About

Microsoft SQL Server Management Studio 9.00.852.00
Microsoft Analysis Services Client Tools 2000.090.0852.00
Microsoft Data Access Components (MDAC) 2000.085.1025.00 built by: (_sqlbld)
Microsoft MSXML 2.6 3.0 4.0 5.0 6.0
Microsoft Internet Explorer 6.0.3790.0
Microsoft .NET Framework 2.0.40607.42
Operating System 5.2.3790

[quoted text, click to view]
Re: How to configure multiple subscriber to same publisher using f Paul Ibison
6/10/2005 9:37:36 AM
Ki,
on mine it says 9.00.1116.00 and I have the April CTP. Using this edition,
the dynamic publication is set up by selecting to filter the article. The
examples show the syntax to use which is the same as that used previously
column = HOST_NAME() etc. When creating the subscription there is a very
nice option - no longer is it required to override the hostname on the merge
agent's commandline - it is shown as a separate form in the wizard with a
textbox to edit. Very nice development, and makes things much easier. This
is stored as the 'Partition Definition' - part of the subscriber properties.
HTH,
Paul Ibison, SQL Server MVP

AddThis Social Bookmark Button