update_function
Redefine a T-SQL user-defined function in a Fabric warehouse or SQL analytics endpoint. Provide the qualified name and new body to alter or create the function.
Instructions
Redefine a T-SQL user-defined function via CREATE OR ALTER FUNCTION.
Note: ALTER FUNCTION cannot change the function kind (e.g. scalar to inline TVF). The body must be compatible with the original function's kind.
Scalar UDFs and inline TVFs are preview features on Fabric DW as of mid-2026. Function DDL is supported on both Data Warehouses and SQL Analytics Endpoints.
CAUTION: body is executed verbatim as DDL. Ensure the body matches the
user's intent before calling this tool.
Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL Analytics Endpoint name or GUID.
qualified_name: Dot-separated qualified function name, e.g. dbo.fn_clean_input.
body: The new function body (parameter list, RETURNS clause, and implementation).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | ||
| item | Yes | ||
| qualified_name | Yes | ||
| body | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||