I would like to md5 all the columns in the sql table no matter what the data type is. I have a query below but it wont work for any column that has more than 8000 character. I have many table that I have to work on. What would be the appropriate solution?
SELECT A.Account_id,   
hashbytes('MD5',                    
(SELECT A.[accountid]
  ,[description]
  ,[pagenumber]
  ,[Permission]---this exceeds over 8000 characters
            FROM (
                  VALUES(NULL))foo(bar)
            FOR xml auto)) AS [Hash]
FROM dbo.table AS A;