Archive for February, 2007
Monthly Archive
Monday, February 12th, 2007
Checksum Code Generator
Also on the subject of checksum testing, this query will generate a checksum query for a given table. Use this query to generate the checksum for each table, then customize the sum() clauses if you did any transformations on your data.
select case a.xtype
when 167 then ‘SUM(LEN(’+a.name+’)) as sum_len_’+a.name+’,’
when 175 then ‘SUM(LEN(’+a.name+’)) as sum_len_’+a.name+’,’
when 231 then [...]