Configuring & Checking CLR integration in SQL Server

Now we are going to configure the CLR, by enabling it.

Enable Set 1
Disable Set 0

sp_configure 'show advanced options', 1;GO
RECONFIGURE
;GOsp_configure 'clr enabled', 1;GO
RECONFIGURE
;GO
Disabling 
sp_configure 'show advanced options', 1;GO
RECONFIGURE
;GOsp_configure 'clr enabled', 0;GO
RECONFIGURE
;GO

Check whether the CLR is enabled or not using the below query:
SELECT * FROM sys.configurations WHERE name = 'clr enabled'

Add your DLL in SQL Assembly:
 
CREATE ASSEMBLY cbtestassembly
FROM 'C:\cb\TestCb.dll'
WITH PERMISSION_SET = UNSAFE;

Comments

Popular posts from this blog

How to create RSS Feed in Asp.Net

Auto generate change scripts in SQL Server Management Studio SSMS for tables

HOW TO Use the NumericUpDown Control