I am trying to do a very hacked change tracking using an outdated application.
What I plan to do is store the BINARY_CHECKSUM values ββof each row in a separate table so that it can be compared in my application.
Imagine that I have 2 tables - TableA, TableB
Both have a ProductID column (So can join two tables together)
I am looking for a request:
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 does not work ... but something along these lines, so the result will be (for example)
ProductID | Hash1 | hash2
1234 | --439419708 | -35860977
source share