Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modify an object without being the owner?

Status
Not open for further replies.

PTW

Programmer
Jul 7, 2000
82
CA
We have two developers who both at times need to make changes to a handful of Views for some of their own internal reports.

However, to my knowledge the only way to allow someone to make a change to a View is to either be the View's owner or the database's owner.

If there ay other way to set a permission to allow changes to a View without giving full ownership? Or give ownership to multiple users?

Thanks.
 
From BOL:

BOL said:
ALTER VIEW permissions default to members of the db_owner and db_ddladmin fixed database roles, and to the view owner. These permissions are not transferable

--James
 
Yep, db_ddladmin is the way to go here. The build in database roles are very handy.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(Not quite so old any more.)
 
Be aware that db_ddladmin has permissions to execute ANY ddl statements including DROP and CREATE.

--John [rainbow]
-----------------------------------
Behold! As a wild ass in the desert
go forth I to do my work.
--Gurnie Hallock (Dune)
 
Thanks everyone. Can I limit the ddl statement access to only certain objects though? It's their Views--they can do whatever they want with them--but I don't wan them to touch anything else.
 
db_ddladmin is a database role, applies to the entire database.

--John [rainbow]
-----------------------------------
Behold! As a wild ass in the desert
go forth I to do my work.
--Gurnie Hallock (Dune)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top