Solved

full permission for store procedures sql 2005

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Refresh Dev server with Production database 8 28
string fuctions 4 26
Sql Server group by 10 27
Have a conversion issue with varchar to int in a SQL: Query. 1 30
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…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
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.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

772 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