SQL Server 权限的分类

SQL Server 的权限可以分三类

  第一类 server 层面上的:

    select * from sys.fn_builtin_permissions(default)

    where class_desc like 'server';

    

  第二类 database 层面:

    select * from sys.fn_builtin_permissions(default)
    where class_desc like 'database';
    

  第三类 schema 层面:

    select * from sys.fn_builtin_permissions(default)
    where class_desc like 'schema';
    

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

授权:

    grant permission to grantee_principal [with grant option] [as grantor_principal];

拒绝:

    deny permission to grantee_principal [cascade] [as grantor_principal];

 

posted on 2014-10-28 19:15  蒋乐兴的技术随笔  阅读(1097)  评论(0编辑  收藏  举报

导航