-- Collection of code snippets by Arne Vajhøj 
-- posted to eksperten.dk, usenet and other places (2002-now) 
CREATE ASSEMBLY MyUDF FROM 'C:\E\MyUDF.dll' WITH PERMISSION_SET = SAFE
GO
CREATE FUNCTION MD5(@val NVARCHAR(1000))
RETURNS NVARCHAR(50)
AS
EXTERNAL NAME MyUDF.[E.Hash].MD5Calc
GO
