SYSTEM$SHOW_BUDGETS_FOR_RESOURCE

functionsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

System functions

Returns 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

NameRequiredDescription
'resource_domain'requiredDomain of the resource. You can specify one of the following values:
'resource_name'requiredName 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

See also