-- 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) 
EXEC sp_configure @configname = 'clr enabled', @configvalue = 1 RECONFIGURE WITH OVERRIDE
GO
CREATE ASSEMBLY DemoSP FROM 'C:\DemoSP.dll' WITH PERMISSION_SET = SAFE
GO
CREATE PROCEDURE ShowT1
AS
EXTERNAL NAME DemoSP.[E.DemoSP].ShowT1
GO
EXEC ShowT1
GO
DROP PROCEDURE ShowT1
GO
DROP ASSEMBLY DemoSP
GO
