Solved

full permission for store procedures sql 2005

Posted on 2011-02-15
3
237 Views
Last Modified: 2012-05-11
Dear Expert,

How to give full permission for store procedure in sql 2005.
For example,

user: ABC\lynn
for full store procedure permission, I should go to sproc, property and
click user, check all of grant for full permission?
Please advise.

Thanks,
Lynn
0
Comment
Question by:yrcdba7
  • 2
3 Comments
 
LVL 50

Expert Comment

by:Lowfatspread
ID: 34901044
do you just want them to be able to use the procedure?

Grant Exec spname to user


full (create/drop/alter and run)

grant all spname to user
0
 
LVL 15

Accepted Solution

by:
Aaron Shilo earned 500 total points
ID: 34905944
hi all

first of all Lynn

your instinct is currect.
if you want the user to totaly control the procedure (alter,drop, etc)
the yes just grant all the available permissions on the procedure to the specific user.

if you want the user to have execution privileges on the  procedure then just grant him Execute on the specific procedure.


@Lowfatspread im sorry but you are wrong regarding the ALL privilage.

Granting ALL does not grant all possible permissions. Granting ALL is equivalent to granting all ANSI-92 permissions applicable to the specified object. The meaning of ALL varies as follows:

Scalar function permissions: EXECUTE, REFERENCES.
A .Table-valued function permissions: DELETE, INSERT, REFERENCES, SELECT, UPDATE.
B .Stored procedure permissions: EXECUTE.
C .Table permissions: DELETE, INSERT, REFERENCES, SELECT, UPDATE.
D .View permissions: DELETE, INSERT, REFERENCES, SELECT, UPDATE.

0
 
LVL 50

Expert Comment

by:Lowfatspread
ID: 34906878
thanks for the reminder
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Suggested Solutions

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now