SQL Server 2008 R2 (SP2), HASHBYTES
SHA2_256
returning NULL. Not sure if there is any settings to be configured to enable it. I understand SHA2_512 works on or above SQL 2012. But SHA2_256 should work in SQL 2008. Help me understand here please.
Below is the screenshot showing I am on 2008 R2.
from MSDN
that's why you are getting
null
.