clr enabled Server Configuration Option


Warning: count(): Parameter must be an array or an object that implements Countable in /home/kazimce1/public_html/wp-content/plugins/microkids-related-posts/microkids-related-posts.php on line 645
USE master
GRANT UNSAFE ASSEMBLY to login_name

USE your_db_name
ALTER DATABASE your_db_name
SET TRUSTWORTHY ON

exec sp_changedbowner [sa]
GO

CREATE ASSEMBLY [System.Xml.Linq]
AUTHORIZATION [dbo]
FROM 'C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll'
WITH PERMISSION_SET = UNSAFE
GO

CLR kullanımını aktif hale getirmek için aşağıdaki kodlar yeterlidir. Ancak yukarıda ki adımlar CLR içerisinde ekstra bir kütüphane kullanıldığında yada ek bir özellik için ihtiyaç olduğunda kullanılabilir.

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

Kaynak;

Enabling CLR Integration
CLR Integration Code Access Security

0 thoughts on “clr enabled Server Configuration Option”

Bir cevap yazın