Is there any way in SQL Server 2012 to generate a hash of a set of rows and columns?
I want to generate a hash, store it on the parent record. The when an update co
select HashBytes('md5',convert(varbinary(max),(SELECT * FROM MyChildTable WHERE ParentId = 2 FOR XML AUTO)))
but HashBytes is limited to 8000 bytes only... you can make a function to get de Md5 for every 8000 bytes....