I'm assuming you mean the CHECKSUM function in SQL server; if not disregard.
Anyways ... no, no one has the code for CHICKSUM. Well the SQL Server team
must, but you shouldn't rely on it anyways - a hash function like CHECKSUM or
..NET's GetHashCode() can change from version to version so you shouldn't rely
on it.
What you should do is use a well known hash algorithym like MD5 or SHA1, and
use that for your comparisons. See the System.Security.Cryptography namespace
in .NET SDK.
"Rain" wrote:
hi,
need help here, does anyone know how to use or does any one have the code
for checksum? I want to checksum a string to be sent using udp and checksum
it again when received.. does anyone know the code for checksum? Thanks i
would really really appreciate it. Thanks in advance..