Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

CHECKSUM

$
0
0

Hi experts,

I never seen this before, and I wanted to know if it really makes a difference?

In the merge I usually do:

merge

..

when matched and

target.column <> source.column

But I have some legacy code and I see this:

OR CHECKSUM (TARGET.ID, TARGET.column1) <> CHECKSUM (SOURCE.ID, SOURCE.column1)

OR CHECKSUM (TARGET.ID, TARGET.column2) <> CHECKSUM (SOURCE.iID, SOURCE.column2)

OR CHECKSUM (TARGET.ID, TARGET.column3) <> CHECKSUM (SOURCE.ID, SOURCE.column3)

Why did that person add that? it really makes a difference the CHECKSUM?


Viewing all articles
Browse latest Browse all 5123

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>