Mabuhay!
Hi! We are planning to restore our database to a new server. Can you help us truncate those entries from 2013 below?
If we run this one transactions will not show even it was 2008 above.
delete from transactionentry from transactionentry te join [transaction] t on te.transactionnumber = t.transactionnumber and year(t.time) <= 2007
delete from tenderentry from tenderentry te join [transaction] t on te.transactionnumber = t.transactionnumber and year(t.time) <= 2007
delete from [transaction] where year(time)<=2007
delete from orderentry from orderentry oe join [order] o on oe.orderid = o.id and year(o.time) <=2007
delete from [order] where year(time) <=2007
delete from purchaseorderentry from purchaseorderentry pe join purchaseorder p on pe.purchaseorderid = p.id and year(p.datecreated) <=2007
delete from purchaseorder where year(datecreated) <=2007
delete from inventorytransferlog where year(datetransferred) <=2007
Thank you,
Chris
*This post is locked for comments