What I need to do is set the current item cost (on the item properties page) for all my items to the highest cost for each item on any PO ever regardless of the PO status (closed, placed, etc) if it's not currently set to this already.
Before I do this I would like to print out a list of changes that will be made.
Can anybody help me with an SQL script for this (yes I will back up before doing anything!)?