SQL Server 2008中,如果希望用户u1在DB1数据库中具有查询T1表的权限,正确的授权语句是( )

admin2021-09-16  15

问题 SQL Server 2008中,如果希望用户u1在DB1数据库中具有查询T1表的权限,正确的授权语句是(       )

选项 A、GRANT SELECT ON DB1(T1) TO u1
B、GRANT SELECT TO u1 ON DB1(T1)
C、GRANT SELECT TO u1 ON T1
D、GRANT SELECT ON T1 TO u1

答案A

解析 SQL Server 2008中GRANT的用法为:
GRANT { ALL [ PRIVILEGES ] }
| permission [ ( column [ ,...n ] ) ] [ ,...n ]
      [ ON [ class :: ] securable ] TO principal [ ,...n ]
      [ WITH GRANT OPTION ] [ AS principal ]
转载请注明原文地址:https://kaotiyun.com/show/UGeZ777K
0

最新回复(0)