RE: Filter in Replication
From: mathon (mathon_at_discussions.microsoft.com)
Date: 10/20/04
- Next message: Tim Ford: "Merge Replication Slow after period of inactivity"
- Previous message: Asif: "Another Snap shot for publication is running ????????"
- In reply to: Paul Ibison: "RE: Filter in Replication"
- Next in thread: Paul Ibison: "RE: Filter in Replication"
- Reply: Paul Ibison: "RE: Filter in Replication"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 20 Oct 2004 05:03:06 -0700
Dear Mr. Ibison!
Yes the device is always used by the same user and everybody has the same
login and password (sa,sa) to the SQL Server database. But i do not exactly
know what you mean with merge agents job step? Where should I add
-HOSTNAME[emailaddress]? And is it then still dynamically when I am not able
to filter according to the login a user makes in my mobile application?
regards
mat
"Paul Ibison" wrote:
> OK - in that case there might be issues. Do you use the
> same login to SQL Server for everyone? Is the mobile
> device used by an individual user or multiple users?
> In the easiest scenario, the device is used by the same
> user each time. Typically you'll be using a sql server
> login which doesn't differentiate between users, so we
> can't rely on this in the filter. If this is true, you
> could set the filter to use HOST_NAME(). In the merge
> agent's job step for this subscriber, add -HOSTNAME
> [emailaddress] to filter the data (replace emailaddress
> with the individuals email address). The filter will be
> as follows:
>
> SELECT <published_columns> FROM [dbo].[JobDescription]
> WHERE JobDescription.email = HOST_NAME().
>
> HTH,
> Paul Ibison (SQL Server MVP)
>
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
>
>
- Next message: Tim Ford: "Merge Replication Slow after period of inactivity"
- Previous message: Asif: "Another Snap shot for publication is running ????????"
- In reply to: Paul Ibison: "RE: Filter in Replication"
- Next in thread: Paul Ibison: "RE: Filter in Replication"
- Reply: Paul Ibison: "RE: Filter in Replication"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|