Is it possible to generate a SHA-256 hash of a string from a stored procedure in Sql Server 2008?
For deployment reasons, I'd prefer it in TSQL.
Is it possible to generate a SHA-256 hash of a string from a stored procedure in Sql Server 2008?
For deployment reasons, I'd prefer it in TSQL.
Sure. You can do it in TSQL, but it will be much easier to implement it as a CLR Stored procedure.
Here's an actual example, that simply uses the .NET Framework types: Let's Hash a BLOB