dbTalk Databases Forums  

Merge Replication and Dynamic and Static Filtering

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


Discuss Merge Replication and Dynamic and Static Filtering in the microsoft.public.sqlserver.replication forum.



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

Default Merge Replication and Dynamic and Static Filtering - 10-25-2005 , 10:45 PM






Hi Guys - I have some basic questions about horizontal filtering and
would appreciate any help.

Dynimic Filtering

When I create a snapshot of a publication that has dynamic filtering,
what will it include? In other words, when the subscriber synchronizes for
the first time, will it apply the snapshot and then filter the data or is
the snapshot already filtered and, if so, by what (since filtering is
different for every subscriber)?

Static Filtering

If a subscriber gets data that is filtered by a particular region for
example, then you enter data in the subscriber for a different region. When
you synchonize, since the region information you entered is not part of the
filter, will it be deleted from the subscriber after it gets propagated to
the publisher or will it remain there?

My last question is if it is possible to do the following:

1) Create a static filter with several criteria (or is only one
allowed?)
2) Then before synchronizing, change the filter clause (through
SQLDMO)

If it seems like that if I change the filter clause then I have to
create another snapshot and reinitialize the subscriber.

Here is our situation, we would like for each subscriber to be able to
choose how they want to filter their data (some may want their data to be
filtered by more than one criteria). Is this flexibility possible?

Thanks,
Maer




Reply With Quote
  #2  
Old   
Peter Yang [MSFT]
 
Posts: n/a

Default RE: Merge Replication and Dynamic and Static Filtering - 10-27-2005 , 05:11 AM






Hello Maer,

Per your question, in Dynimic Filtering, when creating the subscription or
reinitilization the subscription, the snapshot will enable the dynamic
filtering. However, syncrhornization process itself will only syncronize
the data and does not have impact on snapshot. Anytime, you change filter,
you have to reinitilizae the replication.

Quote:
My last question is if it is possible to do the following:
1) Create a static filter with several criteria (or is only one allowed?)
Yes, if you have server articles in the publication. There is only one row
filter for a specific article

Quote:
2) Then before synchronizing, change the filter clause (through
SQLDMO)

Again, you have to reinitialize the repliction after a filter is changed.

Thanks & Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===


This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
Quote:
From: "Maer" <maer (AT) auditleverage (DOT) com
Subject: Merge Replication and Dynamic and Static Filtering
Date: Tue, 25 Oct 2005 23:45:31 -0400
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <uGguf9d2FHA.3228 (AT) TK2MSFTNGP15 (DOT) phx.gbl
Newsgroups: microsoft.public.sqlserver.replication
NNTP-Posting-Host: pcp08364781pcs.lndsd201.pa.comcast.net 68.42.19.117
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.replication:17361
X-Tomcat-NG: microsoft.public.sqlserver.replication

Hi Guys - I have some basic questions about horizontal filtering and
would appreciate any help.

Dynimic Filtering

When I create a snapshot of a publication that has dynamic filtering,
what will it include? In other words, when the subscriber synchronizes for
the first time, will it apply the snapshot and then filter the data or is
the snapshot already filtered and, if so, by what (since filtering is
different for every subscriber)?

Static Filtering

If a subscriber gets data that is filtered by a particular region for
example, then you enter data in the subscriber for a different region.
When
you synchonize, since the region information you entered is not part of
the
filter, will it be deleted from the subscriber after it gets propagated to
the publisher or will it remain there?

My last question is if it is possible to do the following:

1) Create a static filter with several criteria (or is only one
allowed?)
2) Then before synchronizing, change the filter clause (through
SQLDMO)

If it seems like that if I change the filter clause then I have to
create another snapshot and reinitialize the subscriber.

Here is our situation, we would like for each subscriber to be able to
choose how they want to filter their data (some may want their data to be
filtered by more than one criteria). Is this flexibility possible?

Thanks,
Maer






Reply With Quote
  #3  
Old   
Maer
 
Posts: n/a

Default Re: Merge Replication and Dynamic and Static Filtering - 10-27-2005 , 10:58 AM



Thank you, Peter. This answers my questions It also shows that the
approach of dynamically changing the filter before synchronization will not
work.

Thank you,
Maer


"Peter Yang [MSFT]" <petery (AT) online (DOT) microsoft.com> wrote

Quote:
Hello Maer,

Per your question, in Dynimic Filtering, when creating the subscription or
reinitilization the subscription, the snapshot will enable the dynamic
filtering. However, syncrhornization process itself will only syncronize
the data and does not have impact on snapshot. Anytime, you change filter,
you have to reinitilizae the replication.

My last question is if it is possible to do the following:
1) Create a static filter with several criteria (or is only one allowed?)

Yes, if you have server articles in the publication. There is only one row
filter for a specific article

2) Then before synchronizing, change the filter clause (through
SQLDMO)

Again, you have to reinitialize the repliction after a filter is changed.

Thanks & Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===


This posting is provided "AS IS" with no warranties, and confers no
rights.


--------------------
From: "Maer" <maer (AT) auditleverage (DOT) com
Subject: Merge Replication and Dynamic and Static Filtering
Date: Tue, 25 Oct 2005 23:45:31 -0400
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <uGguf9d2FHA.3228 (AT) TK2MSFTNGP15 (DOT) phx.gbl
Newsgroups: microsoft.public.sqlserver.replication
NNTP-Posting-Host: pcp08364781pcs.lndsd201.pa.comcast.net 68.42.19.117
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.replication:17361
X-Tomcat-NG: microsoft.public.sqlserver.replication

Hi Guys - I have some basic questions about horizontal filtering and
would appreciate any help.

Dynimic Filtering

When I create a snapshot of a publication that has dynamic filtering,
what will it include? In other words, when the subscriber synchronizes for
the first time, will it apply the snapshot and then filter the data or is
the snapshot already filtered and, if so, by what (since filtering is
different for every subscriber)?

Static Filtering

If a subscriber gets data that is filtered by a particular region for
example, then you enter data in the subscriber for a different region.
When
you synchonize, since the region information you entered is not part of
the
filter, will it be deleted from the subscriber after it gets propagated to
the publisher or will it remain there?

My last question is if it is possible to do the following:

1) Create a static filter with several criteria (or is only one
allowed?)
2) Then before synchronizing, change the filter clause (through
SQLDMO)

If it seems like that if I change the filter clause then I have to
create another snapshot and reinitialize the subscriber.

Here is our situation, we would like for each subscriber to be able to
choose how they want to filter their data (some may want their data to be
filtered by more than one criteria). Is this flexibility possible?

Thanks,
Maer








Reply With Quote
  #4  
Old   
Peter Yang [MSFT]
 
Posts: n/a

Default Re: Merge Replication and Dynamic and Static Filtering - 10-27-2005 , 09:25 PM



Hello Maer,

You are welcome! :-)

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===



This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
Quote:
From: "Maer" <maer (AT) auditleverage (DOT) com
References: <uGguf9d2FHA.3228 (AT) TK2MSFTNGP15 (DOT) phx.gbl
ev98V7t2FHA.1144 (AT) TK2MSFTNGXA01 (DOT) phx.gbl
Subject: Re: Merge Replication and Dynamic and Static Filtering
Date: Thu, 27 Oct 2005 11:58:29 -0400
Lines: 106
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <#qciv7w2FHA.2292 (AT) tk2msftngp13 (DOT) phx.gbl
Newsgroups: microsoft.public.sqlserver.replication
NNTP-Posting-Host: pcp08364781pcs.lndsd201.pa.comcast.net 68.42.19.117
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.replication:17417
X-Tomcat-NG: microsoft.public.sqlserver.replication

Thank you, Peter. This answers my questions It also shows that the
approach of dynamically changing the filter before synchronization will
not
work.

Thank you,
Maer


"Peter Yang [MSFT]" <petery (AT) online (DOT) microsoft.com> wrote in message
news:ev98V7t2FHA.1144 (AT) TK2MSFTNGXA01 (DOT) phx.gbl...
Hello Maer,

Per your question, in Dynimic Filtering, when creating the subscription
or
reinitilization the subscription, the snapshot will enable the dynamic
filtering. However, syncrhornization process itself will only syncronize
the data and does not have impact on snapshot. Anytime, you change
filter,
you have to reinitilizae the replication.

My last question is if it is possible to do the following:
1) Create a static filter with several criteria (or is only one allowed?)

Yes, if you have server articles in the publication. There is only one
row
filter for a specific article

2) Then before synchronizing, change the filter clause (through
SQLDMO)

Again, you have to reinitialize the repliction after a filter is changed.

Thanks & Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===


This posting is provided "AS IS" with no warranties, and confers no
rights.


--------------------
From: "Maer" <maer (AT) auditleverage (DOT) com
Subject: Merge Replication and Dynamic and Static Filtering
Date: Tue, 25 Oct 2005 23:45:31 -0400
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <uGguf9d2FHA.3228 (AT) TK2MSFTNGP15 (DOT) phx.gbl
Newsgroups: microsoft.public.sqlserver.replication
NNTP-Posting-Host: pcp08364781pcs.lndsd201.pa.comcast.net 68.42.19.117
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP15.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.replication:17361
X-Tomcat-NG: microsoft.public.sqlserver.replication

Hi Guys - I have some basic questions about horizontal filtering and
would appreciate any help.

Dynimic Filtering

When I create a snapshot of a publication that has dynamic filtering,
what will it include? In other words, when the subscriber synchronizes
for
the first time, will it apply the snapshot and then filter the data or is
the snapshot already filtered and, if so, by what (since filtering is
different for every subscriber)?

Static Filtering

If a subscriber gets data that is filtered by a particular region for
example, then you enter data in the subscriber for a different region.
When
you synchonize, since the region information you entered is not part of
the
filter, will it be deleted from the subscriber after it gets propagated
to
the publisher or will it remain there?

My last question is if it is possible to do the following:

1) Create a static filter with several criteria (or is only one
allowed?)
2) Then before synchronizing, change the filter clause (through
SQLDMO)

If it seems like that if I change the filter clause then I have to
create another snapshot and reinitialize the subscriber.

Here is our situation, we would like for each subscriber to be able
to
choose how they want to filter their data (some may want their data to be
filtered by more than one criteria). Is this flexibility possible?

Thanks,
Maer










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.