Quantcast
Channel: SCN: Message List - SAP Replication Server
Viewing all articles
Browse latest Browse all 876

Re: Replication Definition on columns named "rs_FechaIngreso"

$
0
0

Maricl,

 

WORKAROUND: Manually change the column names in RSSD

Note: This workaround is not officially supported. It is required to test the setps before the procedure can be applied to production system.


1)create repdef without using "rs_" name

create replication definition "bog_sabass_dbo_RelacionSeguro_rd"

with primary at               colpensiones_nr.sabass

with all tables named         dbo.RelacionSeguro

(

"ap_NumeroDocumento"   numeric,

"ap_TipoDocumento"     char(1),

"ap_TipoAportante"     tinyint,

"af_NumeroDocumento"   numeric,

"af_TipoDocumento"     char(1),

"tsTipoSeguro"        char(1),

"rsFechaIngreso"      datetime quoted,

"rsFechaRetiro"       datetime quoted,

"rsSalarioBase"       int quoted,

"rsDiasCotizados"     smallint quoted,

"rsDiasMora"          smallint quoted,

"rsCiclosMora"        smallint quoted,

"rsDiasContinuos"     smallint quoted,

"rsEstado"            tinyint quoted,

"rsFechaModificacion" datetime quoted

)

  PRIMARY KEY (

-- PRIMARY KEY: dbo:RelacionSeguro:PK_RELACIONSEGURO

   "ap_NumeroDocumento",

   "ap_TipoDocumento",

   "ap_TipoAportante",

   "af_NumeroDocumento",

   "af_TipoDocumento",

   "ts_TipoSeguro"

)

replicate minimal columns

go


2)shutdown replication server and backup RSSD database

3)
use RSSD
go

 

for each 'rsxxxxx' column, you update it into 'rs_xxxxx' in rs_columns table.

begin transaction
go

 

select * from rs_columns where colname='rsxxxxx' and objid= (select objid from rs_objects where objname='bog_sabass_dbo_RelacionSeguro_rd')
go

update rs_columns set colname='rs_xxxxx', repl_colname='rs_xxxxx' where colname='rsxxxxx' and objid = (select objid from rs_objects where objname='bog_sabass_dbo_RelacionSeguro_rd')

go

select * from rs_columns where colname='rsxxxxx' and objid= (select objid from rs_objects where objname='bog_sabass_dbo_RelacionSeguro_rd')
go

If the column names are updated correctly, you commit this transaction. Otherwise you rollback.


commit
go


4)Restart the replication server

 

5)Run rs_helprep in RSSD to confirm the column names are correct.

 

6)END


Viewing all articles
Browse latest Browse all 876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>