I'm trying to do a very hacky change tracking excercise using a legacy application.
What I'm planning to do, is store the BINARY_CHECKSUM values of each row in a separate table, to compare against in my app.
Imagine I have 2 tables - TableA, TableB
Both have a ProductID column (So can join the two tables together)
I'm looking for a query something like:
SELECT a.ProductID, a.BINARY_CHECKSUM(*)AS Hash1, b.BINARY_CHECKSUM(*) AS Hash2 FROM
TableA a
JOIN
TableB b
ON a.ProductID = b.ProductID
This obviously doesn't work... but something along those lines, so the result would be (for example)
ProductID | Hash1 | Hash2
1234 | --439419708 | -35860977