2015-12-05 73 views

回答

0

按照MSDN文檔,授予不同權限的語法是

GRANT <permission> [ ,...n ] ON 
    [ OBJECT :: ][ schema_name ]. object_name [ (column [ ,...n ]) ] 
    TO <database_principal> [ ,...n ] 
    [ WITH GRANT OPTION ] 
    [ AS <database_principal> ] 

<permission> ::= 
    ALL [ PRIVILEGES ] | permission [ (column [ ,...n ]) ] 

<database_principal> ::= Database_user 
    | Database_role 
    | Application_role 
    | Database_user_mapped_to_Windows_User 
    | Database_user_mapped_to_Windows_Group 
    | Database_user_mapped_to_certificate 
    | Database_user_mapped_to_asymmetric_key 
    | Database_user_with_no_login 

所以語法如下,在Employee表的INSERT權限可以被授予如用戶這

GRANT INSERT ON <your db name>.Employee TO <username> 
+0

有無論如何我可以只是查看錶,看看我是否有權限? @ Rahil051 – coder123

相關問題