Hi
I wanted to regularly delete quotes in the Sales Transactions Work and Sales Transactions Amounts Work table that are over 2 months old.
One way I considered is to run an update script to change the batch number and then delete that batch.
update SOP10100 set BACHNUMB = 'OLDQUOTES' where DOCDATE < DATEADD(month, -2, GETDATE())
What would happen if I run the update script without the batch already existing? Would it corrupt any data?
Also if you can think of any easier way to automate that would be great.
Thanks
Tania
*This post is locked for comments