Guidelines for Modifying Views

You can modify a view using the ALTER VIEW statement.

The ALTER VIEW statement replaces a view definition with a new definition; it does not modify an existing view definition.

The ALTER VIEW statement maintains the permissions on the view.

Example

For example, to replace the column names with more informative names in the DepartmentSize view described above, you could use the following statement:

ALTER VIEW DepartmentSize 
  (DepartmentID, NumEmployees) 
AS
  SELECT DepartmentID, COUNT(*)
  FROM Employees
  GROUP BY DepartmentID
Related concepts
Restrictions on Modifying Join Index Tables