-- Collection of code snippets by Arne Vajhøj 
-- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and 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
