17-08-2024, 05:27 PM
Copia este texto en el fichero C:\SYSME\SGC\actualizabdsysmehotel.txt, guarda el fichero y reinicia el programa, tras esto deberías poder recupearlos:
delete from tiquet2 where (id_tiquet,serie) in (select id_tiquet,serie from tiquet);
delete from factura2 where (id_factura,serie) in (select id_factura,serie from factura);
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);
delete from apcajas2 where id_apcajas in (select id_apcajas from apcajas);
delete from pagoscobros2 where id_pagoscobros in (select id_pagoscobros from pagoscobros);
delete from tiquet2 where (id_tiquet,serie) in (select id_tiquet,serie from tiquet);
delete from factura2 where (id_factura,serie) in (select id_factura,serie from factura);
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);
delete from apcajas2 where id_apcajas in (select id_apcajas from apcajas);
delete from pagoscobros2 where id_pagoscobros in (select id_pagoscobros from pagoscobros);