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

sql server replication

group:

transactional replication-mapping columns



Re: transactional replication-mapping columns Hilary Cotter
3/31/2004 10:29:21 AM
sql server replication: I normally use custom stored procedures for this. However when you create
your DTS package, go to the dialog called Column Mappings and
Transformations. Click on the destination column to enable renaming of the
destanation column name.
[quoted text, click to view]

transactional replication-mapping columns zerone
3/31/2004 4:05:13 PM
hi

is it possible to mapp columns with different names between publisher and
subscriber?
something like this
server A (publisher, distributor)
table test with columns (column1, column2, column3)
server B (subscriber)
table test with columns (column1, column2, column_other)

i'm trying to use a DTS package...

Function Main()
DTSDestination("column1")= DTSSource("column1")
DTSDestination("column2")= DTSSource("column2")
DTSDestination("column_other")= DTSSource("column3")
Main = DTSTransformStat_OK
End Function

when the distribution agent synchronizes it always return the error "Column
name 'column3' was not found"

TIA
Lena





Re: transactional replication-mapping columns Paul Ibison
3/31/2004 5:16:39 PM
I've used DTS for this but just thought I'd mention that an indexed view on
the publisher could be an easier-to-set-up alternative.
Regards,
Paul Ibison

Re: transactional replication-mapping columns Hilary Cotter
4/1/2004 7:26:10 AM
you can't use stored procedures with hetergeneous subscribers like Access. I
can't seem to get DTS working either. BOL does state that this can be done.

[quoted text, click to view]

Re: transactional replication-mapping columns zerone
4/1/2004 10:50:46 AM
the subscriber is an ms access database
can i use custom replication stored procedures anyway?
could you provide me more info? (i'm newer to replication)

thanks
Lena

AddThis Social Bookmark Button