Is there a stored procedure that computes batch totals? I have been asked to create an automated routine that will take an input file full of sales orders and change the batch ID to a batch containing today's date. This will tell their people which orders need to be transferred to invoices on any given day.