Sunday, May 20, 2012

Modifying Data Through a View

The following requirements MUST be met to modify data through a view in SQL Server:
  • The modification can reference exactly ONE table
  • Columns in the view must reference columns in a table directly
  • The column cannot be derived from an aggregate
  • The column cannot be computed as the result of a UNION/UNION ALL, INTERSECT, EXCEPT, or CROSSJOIN
  • The column being modified cannot be affected by the DISTINCT, GROUP BY, or HAVING clause
  • The TOP operator cannot be used

No comments:

Post a Comment