SQL Server 2005-授予创建存储过程的权限(但无其他对象) [英] SQL Server 2005 - Granting permission to create stored procedures (but no other objects)

查看:412
本文介绍了SQL Server 2005-授予创建存储过程的权限(但无其他对象)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想授予用户创建,更改和执行存储过程的权限,但不能创建其他数据库对象。我将它们从db_ddladmin角色中排除,但明确授予了创建过程和执行权限。这些权限显示在有效权限列表中。但是,当我尝试使用此登录名创建存储过程时,出现以下错误:

I want to grant a user permission to create, alter, and execute stored procedures, but without the ability to create other database objects. I excluded them from the role db_ddladmin, but explicitly granted the permissions "Create procedure" and "Execute". These permssions appear in the effective permissions list. However, when I try to create a stored procedure with this login, I get the following error:

指定的架构名称 dbo不存在或您执行了没有使用权限。

"The specified schema name "dbo" either does not exist or you do not have permission to use it."

有任何建议吗?

推荐答案

用户可以在自己拥有的模式中创建过程。因此,您可以为用户设置架构以进行开发工作。然后,如果需要dbo,则管理员可以在开发完成后将其放到那里。

A user can create procedures in a schema that they own. So you can set up a schema for the user to do development work. Then, if it needs to be dbo, the admin can put it there when development is done.

这篇关于SQL Server 2005-授予创建存储过程的权限(但无其他对象)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆