asrithap
asked on
Replication
We are creating a replication, source and destination database structure is same but some of table names and column names are different. How to handle this situation.
thanks,
Ravi
thanks,
Ravi
Sorry, I meant create replicaiton definition in the rep server ...
Thanks
Maneksh
Thanks
Maneksh
You can do this creating replication definition.
Inside the REPDEF, you can say:
(PRIMARY) tabelaX.ColumnX will replicated into (REPLICATED) tabelaY.ColumnY
This way, you can solve your problem.
Inside the REPDEF, you can say:
(PRIMARY) tabelaX.ColumnX will replicated into (REPLICATED) tabelaY.ColumnY
This way, you can solve your problem.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
partial
Assuming you are using sybase replication server . This can be handled in the replication defintion
When you create the replication definition in the source database you can define the replicate table name and replicate column name if the names are different
Please refer
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc32410_1501/html/refman/X81836.htm
the option is
as replicate_column_name
Specifies a column name in a replicate table into which data from the primary column will be copied. Use this clause when the source and destination columns have different names.
There are more ways to handle this using function strings if you need some manipulation of data as well
HTH
Maneksh