Solved

full permission for store procedures sql 2005

Posted on 2011-02-15
3
241 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL works but want to get the XML node data separately 11 28
T-SQL: Stored Procedure Syntax 3 32
SQL syntax question 6 39
SQL Server code help needed 14 31
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

756 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