Yo tambien hago mi transferencia de datos de una base a otra. para ello tienes que tener en cuenta que tengan la misma estructura las tablas. un ejemplo sencillo de hacer un pipeline.
paso 1:
1.1 crea un standar class con tipo pipeline
1.2 guarda el objeto con el nombre dp_pipeline
paso 2.
2.1 crea un pipeline de una tabla
options = appen - insert row
commit = 1
max errors = 1
2.2 guarda el pipeline dp_nombretabla
paso 3.
3.1 crear un window
agregar los controles 1 cb_ , dw_1
3.2 agregar el siguiente ´codigo en instace variables
Transaction itr_origen
transaction itr_destino
3.3 crear las transacciones
// en el evento open del window
// transaccion de origen
itr_origen = create transaction
itr_origen.dbms = "MSS Microsoft SQL Server 6.x"
itr_origen.DataBase = "SISTEMA_VENTAS"
itr_origen.logId = "SA"
itr_origen.logPass = ""
itr_origen.ServerName = "."
itr_origen.DBParm = ""
itr_origen.Autocommit = false
Connect Using itr_origen;
If itr_origen.SQLCode <> 0 then
MessageBox("Error de conexion","Error al crear la conexión",None!)
Destroy itr_origen;
Return -1
End If
// transaction de destino
itr_destino = create transaction
itr_destino.dbms = "MSS Microsoft SQL Server 6.x"
itr_destino.DataBase = "NOSEQUE"
itr_destino.logId = "SA"
itr_destino.logPass = ""
itr_destino.ServerName = "."
itr_destino.DBParm =""
itr_destino.AutoCommit = false
Connect Using itr_destino;
If itr_destino.SQLCode <> 0 then
MessageBox("Conección de destino","Error al crear la conexión",None!)
Destroy itr_destino;
Return -1
End If
3.4 codificar lo siguiente en el boton cb_1
dp_pipeline ldp_pipe
Integer li_estado
ldp_pipe = create dp_pipeline
ldp_pipe.DataObject = "dp_proveedores"
li_estado = ldp_pipe.Start(itr_origen, itr_destino,dw_1)
If li_estado <> 1 then
Messagebox("error en la transferencia " + string (li_estado),"transferencia no realizada",StopSign!)
return -1
End if
//es una manera sencilla de hacer un pipeline ademas el objeto pipeline tiene las propiedades rowsRead, rowWritten para que veas el progreso de transferencia.