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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

grant drop view ...

Status
Not open for further replies.

Skylined

Programmer
Nov 9, 2001
2
GB
I need to 'GRANT DROP VIEW TO ...' but this is not possible. Is there any way I can give a login rights tp do this in an individual database?
I though of creating a db role specifically for this but can't figure how to give the role ability to 'DROP VIEW'.

Any help would be gladly appreciated

Regards,
Harry
 
Hi,

There is no such thing as GRAND DROP VIEW TO ...

If you GRANT permission to create a view, the user will have permission to drop the view.

Create a role
GRAND CREATE VIEW TO the role
Assign the user to that role.

Kim
 

DROP is part of the SQL Data Definition Langauge (DDL). You can assign a user to the database role of db_ddladmin but then that person could Create, Drop and Alter any objects. I don't know of any way to Grant Drop View permissions.

Books Online say,

"DROP VIEW permissions default to the view owner, and are not transferable. However, members of the db_owner and db_ddladmin fixed database role and sysadmin fixed server role can drop any object by explicitly specifying the owner in DROP VIEW." (emphasis added) Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top