Question 860
A schema migration changes a base column used by multiple schema-bound dependencies. Which implementation decision BEST addresses this requirement?
Explanation
Correct Answer
Review dependency effects and change the schema-bound view deliberately before modifying underlying objects. This targets the primary issue because SCHEMABINDING protects referenced definitions against incompatible schema changes. Verification: A migration test catches incompatible column modification before production. Prevent recurrence: Track dependent objects through versioned migrations.
Incorrect Answers
Aggregate views are not generally directly updatable like simple single-table projections.
SQL triggers run per statement and inserted can contain multiple rows.
Per-row scalar function calls may create expensive repeated execution on some workloads.