prepare_view_change
Prepare and preview reversible CREATE VIEW or ALTER VIEW changes to evaluate impact before applying them to Azure SQL.
Instructions
Prepare and preview a reversible CREATE VIEW or ALTER VIEW change. Optimizer preparations are process-local previews; sandbox preparations become restart-safe only with explicit raw-SQL state opt-in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | No | auto, create, or alter | auto |
| view_name | Yes | Target view. | |
| definition | Yes | Complete SELECT-shaped view body, without CREATE/ALTER VIEW. | |
| schema_name | Yes | Target schema. | |
| indexed_view | No | ||
| schema_bound | No | ||
| database_name | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||