Thanks for the reply, Paul.
The intent is that when there are changes via replication applied to the
subscriber, the developers looking at the subscriber database want to see if
changes had been made to the column. Then their process only needs to look
at the updated flag in the subscriber tables. I've never used the updateable
subscribers thinking that those would send changes back to the publisher
which is definitely not what I wanted, but maybe I am misunderstanding the
functionality of updateable subscribers option. The columns that are being
replicated from source to destination will not be modified on the
destination. Only the "extra" updated flag column would be modified on the
subscriber (destination).
[quoted text, click to view] "Paul Ibison" wrote:
> Steve,
> you could use an indexed view or use the @creation_script parameter of
> sp_addarticle. However I'm confused that you're updating the subscriber and
> yet you don't have an updatable subscription. Also, surely the default would
> only apply to the inserts via replication and therefore always be set to 1?
> Cheers,
> Paul Ibison SQL Server MVP,
www.replicationanswers.com > (recommended sql server 2000 replication book:
>
http://www.nwsu.com/0974973602p.html)
>
>
Steve,
thanks for the explanation, but I still don't entirely follow: "the
developers looking at the subscriber database want to see if
changes had been made to the column" - this part seems odd to me. To flag
this type of change to the subscribers, who only see a RO database, the
change must have occurred on the publisher, so I'd use an update trigger to
set the flag on the publisher and have the value replicate down to the
subscriber. Is it perhaps the case that you can't change the schema on the
publisher to add this updated flag? If this is so, then you could indeed
have the schema change on the subscriber and modify the update stored
procedure used by replication to additionally set the update flag.
Cheers,
Paul Ibison SQL Server MVP,
www.replicationanswers.com (recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)