rename_table
Renames a SQL table in a Microsoft Fabric Data Warehouse using sp_rename. Provide the current qualified table name and a new unqualified name to update it in place without changing schema.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace": "<workspace>",
"item": "<item>",
"qualified_name": "<qualified_name>",
"new_name": "<new_name>"
},
"name": "rename_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| new_name | Yes | ||
| workspace | Yes | ||
| qualified_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||