﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / Checksum givingtwo different values while Comparing VarBinay(MAX) / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 18:08:02 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Checksum givingtwo different values while Comparing VarBinay(MAX)</title><link>http://www.sqlservercentral.com/Forums/Topic674944-146-1.aspx</link><description>If I understand your question:You are saving a copy of an Excel spreadsheet (or Word document) to the database. You then open that Excel spreadsheet, make no changes to it, and Save it. You are now surprised that the checksum of the file is different than it used to be. That's most likely because the files [i]are[/i] different. Just now I made a copy of an Excel file. (Just a plain file copy, nothing to do with SQL Server). I opened that file in Excel. I did absolutely nothing other then press Save, and then Exit. I compare the file against the copy I just made, and I see that the file has changed. It's not surprising that the checksums on the two files would be different, since the files are different, even though the two files hold the same "content". </description><pubDate>Wed, 25 Aug 2010 05:00:16 GMT</pubDate><dc:creator>David Dubois</dc:creator></item><item><title>RE: Checksum givingtwo different values while Comparing VarBinay(MAX)</title><link>http://www.sqlservercentral.com/Forums/Topic674944-146-1.aspx</link><description>An interesting solution but adding another column, though guaranteed to be unique, cannot guarantee checksums that will always differ.  As a matter of fact, given the original issue, it may even cause rows that differ and have different checksums to now have duplicate checksums.</description><pubDate>Tue, 24 Aug 2010 13:22:07 GMT</pubDate><dc:creator>SQLogical</dc:creator></item><item><title>RE: Checksum givingtwo different values while Comparing VarBinay(MAX)</title><link>http://www.sqlservercentral.com/Forums/Topic674944-146-1.aspx</link><description>deleted:  didnt read the OP question thoroughly !!</description><pubDate>Tue, 24 Aug 2010 13:07:33 GMT</pubDate><dc:creator>J Livingston SQL</dc:creator></item><item><title>RE: Checksum givingtwo different values while Comparing VarBinay(MAX)</title><link>http://www.sqlservercentral.com/Forums/Topic674944-146-1.aspx</link><description>You can find a number of posts on this subject by doing a web search on "SQL Server Checksum false positives".  Something related but not discussed as much are the rows that are different yet generate the same checksum value.  SQL Server 2005 can generated checksums that are exactly the same in spite of the fact that the data is different.  To try it for yourself:CREATE TABLE DupeTest	(FieldA INT,	FieldB INT,	RowChecksum AS CHECKSUM(FieldA, FieldB))	INSERT DupeTest (FieldA, FieldB)	VALUES (384, 170005);INSERT DupeTest (FieldA, FieldB)	VALUES (387, 170021);	SELECT * FROM dupetestDROP TABLE DupeTest</description><pubDate>Tue, 24 Aug 2010 12:36:39 GMT</pubDate><dc:creator>SQLogical</dc:creator></item><item><title>Checksum givingtwo different values while Comparing VarBinay(MAX)</title><link>http://www.sqlservercentral.com/Forums/Topic674944-146-1.aspx</link><description>Hi All,I'm facing a strange issue in my project.We are developing an windows application in which store the contents of (Word,Excel) in varbinary format in database(SqlServer2005).Our requirement is that we need to compare the current content of the word or excel with that of the content which is already saved in the database.If there is any change in the content then only i need to update the database,for this comparison we are using checksum.But the issue we are facing is that eventhough i havn't made any changes to the word document, on saving when i try to compare the previous value and current value using checksum in the database , it gives out two different values.Can anyone please help on this.Thanks in advance,Regards,Vibindas</description><pubDate>Fri, 13 Mar 2009 00:16:55 GMT</pubDate><dc:creator>vibin.das</dc:creator></item></channel></rss>