You are here: Re: Column By Column Comparison « MsSQL Server « IT news, forums, messages
Re: Column By Column Comparison

Posted by Steve Kass on 10/14/05 16:42

Jens,

This is not 100% reliable. If the checksum functions are
different, there must be a difference in the tables, but the
converse is not true. The checksum functions can return the
same values on different data, like any hash function.

The only sure way is to compare column by column values.

Steve Kass
Drew University

Jens wrote:
> Do you just want to know if there IS a difference or what sort of
> difference ?
>
> --For the Whole Table
> SELECT checksum_agg(binary_checksum(*)) from SomeTable
>
> --For just the rows
> Select binary_checksum(*) from SomeTable
>
> If you need more granualarity, then it would be more work.
>
> HTH, Jens Suessmeyer.
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация