打印本文 打印本文 关闭窗口 关闭窗口
如何获得SQL SERVER2000数据库指定对象的权限列表?
作者:武汉SEO闵涛  文章来源:敏韬网  点击数4172  更新时间:2007/11/14 11:06:07  文章录入:mintao  责任编辑:mintao
1 from  sysobjects
         where [name]=object_name(a.[id]) and xtype <>''''S'''' )
  and  a.uid=user_id(@username)
  and  [id]=object_id(@objectname)
  order by object_name(a.id)

  select @rowcount=@@rowcount
  if @rowcount=0
   begin
    select @rc=-10
    print @username+'''' have not any objects authorization.''''
    return @rc
   end
 end
   end
end
go
exec usp_getObjectAuthor

上一页  [1] [2] [3] [4] 

打印本文 打印本文 关闭窗口 关闭窗口