December 11, 2008 at 4:52 pm
It has been 7 hours since you posted your question with no answers.
Let me ask:
Have you looked at:
Impersonation
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/scsql9/html/dc049e56-b210-47f9-815a-a03b9ef7b6ba.htm
and / or the "Execute As"
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/2c7004bf-9385-429e-a616-9bd7a7b19978.htm
subjects in Books on Line?.. It not they may give you some sort of a hint as to how to do what you want to do.
December 12, 2008 at 7:33 am
Neither of those choices will allow a user without execute rights to a stored procedure to find it in a listing by querying information_schema.routines or sysobjects.
This is stemming from having developers that need to be able to do an sp_helptext on stored procedures in our production system, but they should not have execute rights. I've just been tasked with finding a solution, not determining the 'why' behind the need for it.
I still think it is odd that these logins can do a sp_helptext on a specific stored procedure, but they can't run a select * from information_schema.routines and get a listing including that procedure without having execute permissions on the procedure. I know it's more secure that way, but that doesn;t help when people are saying - "I could do it on SQL Server 2000"
December 12, 2008 at 7:42 am
i thought if you create a group, and add this command, then your developers, if they belong to that group, can view the definition of any of the objects int he database, but since they are not datareaders or datawriters, they can't fiddle with the data:
Grant View Any Definition To MyUserGroup
Lowell
December 12, 2008 at 7:50 am
You can create a stored procedure and use the execute as clause. In then you can grant permissions to use this procedure to anyone that needs to be able to see all the procedures. Here is the example:
create procedure ShowAllPorcedures
with execute as self
as
select * from information_schema.routines
go
grant execute on ShowAllPorcedures to public
Adi
--------------------------------------------------------------
To know how to ask questions and increase the chances of getting asnwers:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 12, 2008 at 7:54 am
Lowell's suggestion worked beautifully. Thanks.
Viewing 5 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply