rename_table
Rename a SQL table in a Microsoft Fabric Data Warehouse using sp_rename. Provide the current qualified name and the new unqualified name to execute the rename in place.
Instructions
Rename a SQL table via sp_rename (Data-Warehouse-only).
Renames the table in-place within the same schema using T-SQL
EXEC sp_rename. Both the current qualified name and the new bare
name are passed as bound parameters — no SQL injection is possible.
sp_rename cannot move a table to a different schema, so new_name
must be an unqualified (bare) name without a dot.
Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID. SQL Analytics Endpoints are rejected.
qualified_name: Current dot-separated qualified table name, e.g.
dbo.sales.
new_name: New table name (unqualified, e.g. sales_v2). Must not
contain a dot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | ||
| item | Yes | ||
| qualified_name | Yes | ||
| new_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||