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!
12b34cab-6c70-469b-a5cf-a0aa14ee64e4|0|.0
Tags:
sql
Categories: sql