• I did this recently to determine if a row needed to be updated. I put a checksum column in the table using the values that could possibly be updated. The stored procedure had a checksum variable based on the input variables. The input variables for the proc are also the DB columns that could possibly be updated.

    By comparing the DB checksum calculation with the stored procedure checksum variable I knew whether the row needed updating or not.