transfer_procedure
Move a stored procedure to another schema in a Microsoft Fabric warehouse or SQL analytics endpoint using ALTER SCHEMA TRANSFER. Avoids recreating the procedure, but note that its stored definition may still show the old schema name.
Instructions
Move a stored procedure to another schema via ALTER SCHEMA ... TRANSFER OBJECT::....
Stored procedures are supported on both Fabric Data Warehouses and
SQL Analytics Endpoints; unlike transfer_table, no endpoint guard
is applied here.
CAUTION: ALTER SCHEMA ... TRANSFER moves the procedure but does
NOT rewrite the schema name inside its stored definition. After a
transfer, get_procedure may still show the OLD schema name in the
CREATE ... AS header even though the procedure now lives in the
new schema.
Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Current dot-separated qualified procedure name,
e.g. dbo.usp_load.
target_schema: Schema to move the procedure into, e.g. archive.
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>",
"target_schema": "<target_schema>"
},
"name": "transfer_procedure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| workspace | Yes | ||
| target_schema | Yes | ||
| qualified_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||