Solved

full permission for store procedures sql 2005

Posted on 2011-02-15
3
238 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

914 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

23 Experts available now in Live!

Get 1:1 Help Now