SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Access rights
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mmkrishna1919
Yak Posting Veteran

India
79 Posts

Posted - 01/02/2014 :  09:03:20  Show Profile  Reply with Quote
I have a new table "customer" in my schema "dev"
and i have new stored procedure "add_customer" in my schema "dev"

in Stored procedure i am inserting/deleting records into/from table "customer".

If a user want to execute StoredProcedure

does he need permissions on both table and StoredProcedure?
or
permissions on StoredProcedure will enough..to execute the SP?

Thanks

M.MURALI kRISHNA

lionofdezert
Aged Yak Warrior

Pakistan
885 Posts

Posted - 01/02/2014 :  09:33:28  Show Profile  Visit lionofdezert's Homepage  Send lionofdezert a Yahoo! Message  Reply with Quote
You need EXECUTE premissions only on Stored Procedure

--------------------------
http://connectsql.blogspot.com/
Go to Top of Page

ovc
Starting Member

Romania
35 Posts

Posted - 02/01/2014 :  19:05:42  Show Profile  Reply with Quote
you will need access also to the underlying objects.
If you do not want to add permissions to the underlying table, you can run the stored procedure within a different context by adding to the definition of the stored procedure "execute as yourdefinedusername".
For more info check:
http://technet.microsoft.com/en-us/library/ms187926.aspx

Regards,
Octavian
Go to Top of Page

sunsanvin
Flowing Fount of Yak Knowledge

India
1265 Posts

Posted - 02/01/2014 :  23:31:19  Show Profile  Send sunsanvin a Yahoo! Message  Reply with Quote
OVC, you are correct

Arnav
Even you learn 1%, Learn it with 100% confidence.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000