0
请让试图授予用户的特定角色时出现错误:SQL语法错误创建角色
Grant role role_1 to maintenance;
错误:
Incorrect syntax near 'role_1'
是否要修改它,因此授予角色用户工作
请让试图授予用户的特定角色时出现错误:SQL语法错误创建角色
Grant role role_1 to maintenance;
错误:
Incorrect syntax near 'role_1'
是否要修改它,因此授予角色用户工作
GRANT {role_name} TO {user_name};
for T-SQL,下面是GRANT的简化语法
GRANT { ALL [ PRIVILEGES ] }
| permission [ (column [ ,...n ]) ] [ ,...n ]
[ ON [ class :: ] securable ] TO principal [ ,...n ]
[ WITH GRANT OPTION ] [ AS principal ]
在你的情况下,只需
GRANT role_1 TO maintenance;
谢谢但由于某种原因仍然出现语法错误 – LebronJames
[这里](http://stackoverflow.com/questions/11008399/t-sql-how-to-grant-role-to-user)是您对SQL Server的回答 – cha
我看不到SQL Server上的授予角色role_1修复程序。 – LebronJames