10-01-2022, 04:51 PM
Vale porrylla,
He recuperado los datos de la copia que me has mandado pero he tenido que ejecutar UNO A UNO estos scripts, repito uno a uno en SISTEMA->MANTENIMIENTO->Pestaña CONSOLA DB:
delete from tiquet2 where (serie,id_tiquet) in (select serie,id_tiquet from tiquet);
delete from factura2 where (serie,id_factura) in (select serie,id_factura from factura);
delete from pagoscobros2 where id_pagoscobros in (select id_pagoscobros from pagoscobros);
delete from apcajas2 where id_apcajas in (select id_apcajas from apcajas);
delete from ventadirecta2 where id_venta in (select id_venta from ventadirecta);
delete from ventadir_comg2 where (id_venta,id_linea) in (select id_venta,id_linea from ventadir_comg);
alter table ventadir_comg DROP FOREIGN KEY FK_ventadircomg;
Con esto seguro que los puedes recuperar.
Ya me dices.
He recuperado los datos de la copia que me has mandado pero he tenido que ejecutar UNO A UNO estos scripts, repito uno a uno en SISTEMA->MANTENIMIENTO->Pestaña CONSOLA DB:
delete from tiquet2 where (serie,id_tiquet) in (select serie,id_tiquet from tiquet);
delete from factura2 where (serie,id_factura) in (select serie,id_factura from factura);
delete from pagoscobros2 where id_pagoscobros in (select id_pagoscobros from pagoscobros);
delete from apcajas2 where id_apcajas in (select id_apcajas from apcajas);
delete from ventadirecta2 where id_venta in (select id_venta from ventadirecta);
delete from ventadir_comg2 where (id_venta,id_linea) in (select id_venta,id_linea from ventadir_comg);
alter table ventadir_comg DROP FOREIGN KEY FK_ventadircomg;
Con esto seguro que los puedes recuperar.
Ya me dices.