Re: Stored Proc security



Arne Garvander (ArneGarvander@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
How do I grant execute proc privileges in SQL Server 2005?

GRANT EXEC ON some_sp TO nisse -- Grant permission on a single procedure.
GRANT EXEC ON SCHEMA::dbo TO kalle -- Grant perpmission on all procedures in
the dbo schema
GRANT EXEC TO putte -- Grant EXEC permission all procedures in the database.

--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: GRANT - Execute SP
    ... from sysobjects where type = 'P' ... Jasper Smith (SQL Server MVP) ... grant exec to each sp individually, ...
    (microsoft.public.sqlserver.security)
  • Re: Support team security
    ... Jasper Smith (SQL Server MVP) ... grant exec on dbo.usp_ReadLogins to Support ... and not just the error logs) e.g ...
    (microsoft.public.sqlserver.security)