简体   繁体   English

将所有权限授予 SQL 服务器中的用户

[英]Grant all the privileges to user in SQL Server

I'm working on SQL Server.我正在开发 SQL 服务器。 I created a new login, new user to the database then I log into the instance with sql server authentification using the same login.我创建了一个新的登录名,新用户到数据库,然后我使用相同的登录名登录到具有sql server authentification的实例。 I gave the user all the privileges by checking these我通过检查这些给了用户所有的权限

I've run the command:我已经运行了命令:

grant all to [user]

and got this error并得到了这个错误

Cannot grant, deny or revoke permissions to sa, dbo, entity owner, information_schema, sys or yourself.不能授予、拒绝或撤销对 sa、dbo、实体所有者、information_schema、sys 或您自己的权限。

and then still can't save changes and update tables because it's not permitted.然后仍然无法保存更改和更新表,因为这是不允许的。 how can I grant all the privileges the the user?如何授予用户所有权限?

Thanks in advance.提前致谢。

Grant permissions using SA user because you can not give restricted permissions to yourself if you don't have permission to do it.使用 SA 用户授予权限,因为如果您没有权限,则无法为自己授予受限权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM