dbTalk Databases Forums  

Create Function permission...

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Create Function permission... in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Matthew Wells
 
Posts: n/a

Default Create Function permission... - 09-20-2007 , 03:56 PM






How do I give a Windows group complete rights (including create) to all
stored procedures and user defined functions without giving them dbo access
in SQL Server 2005? If I have to I can do it from the Management Console,
but I would also like to know the commands.

Thanks

Matthew Wells
Matthew.Wells (AT) FirstByte (DOT) net



Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Create Function permission... - 09-20-2007 , 04:15 PM






Matthew Wells (Matthew.Wells (AT) FirstByte (DOT) net) writes:
Quote:
How do I give a Windows group complete rights (including create) to all
stored procedures and user defined functions without giving them dbo
access in SQL Server 2005? If I have to I can do it from the Management
Console, but I would also like to know the commands.
GRANT CREATE PROCEDURE TO [Windows\group]
GRANT DROP PROCEDURE TO [Windows\group]
GRANT ALTER ON SCHEMA::dbo TO [Windows\group]

If you use other schemas than dbo, they need ALTER permissions on those
schemas as well.

I'm not sure that you will find ALTER sufficient. In that case, you can
grant CONTROL on the schemas. But as long as they only have ALTER/CONTROL on
schema level, they can create users, certificates etc.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.