Question : Grant Permissions to Alter View

I have given a user in Microsoft SQL 2000 the rights to create a view, but they do not have the rights to alter/update it.  What permissions do i need to set to allow this?

Answer : Grant Permissions to Alter View

From BOL

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.

To alter a view, the user must have ALTER VIEW permission along with SELECT permission on the tables, views, and table-valued functions being referenced in the view, and EXECUTE permission on the scalar-valued functions being invoked in the view.

In addition, to alter a view WITH SCHEMABINDING, the user must have REFERENCES permissions on each table, view, and user-defined function that is referenced.
Random Solutions  
 
programming4us programming4us