Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

my application user asking to give access to execute a storedprocedure in any database it it possible? if so how Expand / Collapse
Author
Message
Posted Friday, October 5, 2012 3:34 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Yesterday @ 5:13 AM
Points: 578, Visits: 1,280
Hi all

one of my application user asking to give access to execute a storedprocedure where ever he wants to execute in any database it it possible? if so how

wha permissions can we give inthis case ??

i feel it by giving [ddladmin and db_owner ] in database role and setupadmin and serveradmin in server role ??


is it possible to make a stored procedure to execute in any database ?


Thanks
Naga.Rohitkumar
Post #1368911
Posted Tuesday, October 16, 2012 5:51 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: 2 days ago @ 5:01 AM
Points: 2,840, Visits: 3,968
grant exec on "stored_proc" to "user"

-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done
Post #1373173
Posted Tuesday, October 16, 2012 4:24 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 8:40 AM
Points: 35,265, Visits: 31,754
naga.rohitkumar (10/5/2012)
Hi all

one of my application user asking to give access to execute a storedprocedure where ever he wants to execute in any database it it possible? if so how

wha permissions can we give inthis case ??

i feel it by giving [ddladmin and db_owner ] in database role and setupadmin and serveradmin in server role ??


is it possible to make a stored procedure to execute in any database ?


I have to ask... what does this store procedure do and why would you have a user execute it? It'll make a difference in how I answer.


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1373570
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse