Quantcast bật clr trong sql server

bật clr trong sql server

by Neon Quach 4. June 2010 18:40

Cơ chế clr trong sql giúp chúng ta có thể tạo User Define Types (UDF), User Define Function (UDF), Table value Functions (TVF), Triggers, and Stored Procedures sử dụng ngôn ngữ lập trình như: C#, VB.NET.

Đoạn script giúp chúng ta có thể bật hoặc tắt nếu muốn

if exists(select * from sys.configurations where name = 'clr enabled' and value_in_use <> 1)

begin

        exec sp_configure 'clr enabled', 1

        reconfigure with override

end

go

 
Và khi muốn tắt chức năng clr đi thì chỉ cần thay đổi giá trị 1 thành 0.

Hope this help!

 

Tags:


Categories: sql

blog comments powered by Disqus

About me

I'm  currently employed as Software developer at devinition.com and also a Microsoft Certified Technology Specialist (MCTS), Microsoft Certified Professional Developer (MCPD) in Net Framework 2.0 and 3.5: Web Applications and MCTS .NET Framework 3.5, ADO.NET Applications

Powered by BlogEngine.NET 2.5.0.5 - Eco Theme by n3o Web Designers