Re: Alter Many Stored Procedures

From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 12/15/04


Date: Wed, 15 Dec 2004 07:01:23 -0600

Vinod, you are right that db_owner/db_ddladmin role membership provides
permissions to create/drop/alter other objects as well. I also should have
pointed out that it is important to understand the difference between object
permissions (SELECT, INSERT, UPDATE, DELETE, EXECUTE and REFERENCES) and
statement permissions like ALTER. One cannot grant statement permissions to
individual objects. To ALTER an object, one must be one of the following:

    1) the object owner
    2) a member of the db_ddladmin fixed database role
    3) a member of the db_owner fixed database role
    4) the database owner
    5) a sysadmin server role member

Consequently, if an object is owned by another user like 'dbo', 2-5 above
applies. If those permissions are too powerful, one method I've seen used
is to grant CREATE permissions to the user/group/role so that objects owned
by the user can be modified and then have the DBA use sp_changeobjectowner
to promote to another schema as needed.

-- 
Hope this helps.
Dan Guzman
SQL Server MVP
"Vinod Kumar" <vinodk_sct@NO_SPAM_hotmail.com> wrote in message 
news:cpojd4$rqv$1@news01.intel.com...
> Having said that db_owner and db_ddladmin also opens doors to do other ddl
> operations on the DB. So be careful in the usage. If you would like to 
> give
> specific grants then its a pain staking job of GRANT-ing each SP to the 
> user
> account/distribution list.
>
> -- 
> HTH,
> Vinod Kumar
> MCSE, DBA, MCAD, MCSD
> http://www.extremeexperts.com
>
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
>
> "Dan Guzman" <guzmanda@nospam-online.sbcglobal.net> wrote in message
> news:Oajgzek4EHA.1260@TK2MSFTNGP12.phx.gbl...
>> The group needs to be a member of the db_owner or db_ddladmin fixed
> database
>> roles.
>>
>> -- 
>> Hope this helps.
>>
>> Dan Guzman
>> SQL Server MVP
>>
>> "SangHunJung" <SangHunJung@discussions.microsoft.com> wrote in message
>> news:7721EA2E-43D5-49DD-BB58-287F05D77284@microsoft.com...
>> > Hello, We have SQL2000 (Standard Edition) server running on Win2k
> server.
>> > What permission do I need to setup for a developer in order to change
> many
>> > stored procedures in ABC database?  Developer windows group is added to
>> > the
>> > database and grant all permissions (select, insert, delete, update) to
> the
>> > group.
>> >
>> > Thanks in advance
>> > SangHun
>>
>>
>
> 


Relevant Pages

  • ADP, Application Role, and objects
    ... The above link is to an atricle on how to implement SQL Server Application ... After you connect with your ADP, fire a bit of code to set the ... third party tools to view the data on the same database. ... Scenario 1 - If I explicitly grant permissions on that object to the user ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Execute Persmission denied on object sp_OACreate
    ... > SQL Server is creating a job behind the scenes. ... > permissions. ... > SA account password and gaining access to the database. ... >>> How can get a user permissions to execute these stored procedures ...
    (microsoft.public.sqlserver.security)
  • Re: SQL Server 7.0 ignores user permissions
    ... Is Windows user a member of some Windows groups? ... have all permissions in SQL Server. ... > In my database I have a table called, for the sake of argument, 'TableX'. ...
    (microsoft.public.sqlserver.security)
  • Re: Newbie: I dont understand user permissions for table access
    ... > My database is remote to my workstation. ... > tables/fields WITHOUT specifying anything in the permissions dialogs? ... >> HOW are you connecting to SQL Server? ... what rights/permissions have been granted to the PUBLIC role? ...
    (microsoft.public.sqlserver.server)
  • Re: Execute Persmission denied on object sp_OACreate
    ... SQL Server is creating a job behind the scenes. ... SA account password and gaining access to the database. ... > SQL Server doesn't check permissions on indirectly referenced objects as ... > the proxy account security context for non-sysadmin users from Enterprise ...
    (microsoft.public.sqlserver.security)