日期:2014-05-17  浏览次数:20543 次

如何授权使用hextodec函数
GRANT select on b1 to r_n;
这是授权select到表b1

我现在要授权使用
select ... from ogert where id=dbo.hextodec('...')
这样没有授权给角色,老是报错,请问怎样授权给r_n啊,就是怎么写?
------最佳解决方案--------------------
标量函数
grant EXECUTE on hextodec to r_n

表值函数
grant SELECT on hextodec to r_n

------其他解决方案--------------------
另外要授权函数的使用.
------其他解决方案--------------------
grant select on hextodec to r_n
------其他解决方案--------------------
请问楼上,执行grant select on hextodec to r_n ,错误提示
消息 4606,级别 16,状态 1,第 1 行
所授予或撤消的特权 SELECT 与对象不兼容。
------其他解决方案--------------------
执行grant select on hextodec to r_n
时提示:
所授予或撤消的特权 SELECT 与对象不兼容。
------其他解决方案--------------------
有没有人啊,帮帮忙?谢谢了。