开发者

SQL SERVER stored procedure problem?

I have created a stored procedure using SQL Server Management studio.

I am able to create it but if I tryto ri开发者_运维百科ght click on the stored procedure and execute it, I am getting permission denied error# 229.

I have administrator rights. How can I execute this procedure.


if you are really connecting as sa this should not happen, if you are not, could be that your user does not really have all the rights.

It is also difficult to understand the problem without seeing the body of the stored in case you are doing anything special in there.

at this link anyway: http://www.sqlservercentral.com/Forums/Topic463688-146-1.aspx somebody was discussing the same error and there are some SQL commands scrolling down the page where some people claim to have fixed the issue.


Are you sure that you have sufficient permissions?
Error 229 means that you don't.

Your user needs at least EXECUTE permissions for the stored procedure:
Stored Procedure and Permissions - Is EXECUTE enough?

Here's how you can check if you have the permission:
MS SQL Server: Check to see if a user can execute a stored procedure


Verify that you didn't add your user to any of the deny roles, like db_denydatareader.


Use this to add execute privillages to your SQL Login:

GRANT EXECUTE ON SPNAME TO UserName;
GO
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜