SQL SERVER CLR常用的配置SQL语句

alter database [master] set TRUSTWORTHY  on
EXEC sp_changedbowner 'sa'

 

--启动CLR
exec sp_configure 'show advanced options', '1';
go
reconfigure;
go
exec sp_configure 'clr enabled', '1'
go
reconfigure;
exec sp_configure 'show advanced options', '1';
go

 

use master

GRANT EXTERNAL ACCESS ASSEMBLY TO Air_User

 

参考一个具体的错误

http://topic.csdn.net/u/20090424/23/2f6b3abe-0fa5-46ea-977a-b8c124f09b93.html?seed=1222553149&r=59670172#r_59670172

 

------------

备注其它

/* 查看表占用空间 */

exec sp_spaceused wordnet

exec sp_spaceused wordnet_bad

/* 字符串MD5加密 */

select sys.fn_VarBinToHexStr(hashbytes('MD5','123456')) as md5

posted @ 2009-09-09 13:57  kkun  阅读(382)  评论(0)    收藏  举报