SYSTEM$SHOW_BUDGETS_FOR_RESOURCE
functionsupportedAccounts, users, sessions, warehousesReturns a string containing a list of the budgets that track a specified resource (for example, a table or a schema).
Syntax
SYSTEM$SHOW_BUDGETS_FOR_RESOURCE( '<resource_domain>' , '<resource_name>' )
Parameters
| Name | Required | Description |
|---|---|---|
'resource_domain' | required | Domain of the resource. You can specify one of the following values: |
'resource_name' | required | Name of the resource (for example, the name of the table). |
Returns
Returns a VARCHAR value containing the comma-delimited list of the fully qualified names of the budgets for the resource. The list is surrounded by square brackets. If there are no budgets tracking the specified resource, the function returns a string containing an empty pair of square brackets ([]).
Usage notes
- The output of this function includes budgets that include the resource because of any of the following reasons:
- The resource was added directly to the budget.
- The resource has the tag/value combination that was added to the budget.
- The resource belongs to an object (for example, a database) that was added to the budget.