account_root_budget!ACTIVATE

Activate the account budget. You must activate the account budget in order to use the budgets feature.

See also:

account_root_budget!DEACTIVATE

语法

CALL account_root_budget!ACTIVATE()

返回

activated

访问控制要求

只有具有 ACCOUNTADMIN 角色或被授予以下权限的角色才能激活账户预算:

For more information, see Budgets roles and privileges.

使用说明

  • 激活账户预算后:

    • 您必须设置支出限额,这样预算才能开始跟踪 credit 的使用情况。
    • You must set up notifications for the budget. If you do not set up notifications for the budget, no notifications will be sent out.
  • 此方法仅适用于账户预算。自定义预算不需要激活。

  • Calling this method does not return the object. Because of this, you can’t use method chaining to call another method on the return value of this method. Instead, call each method in a separate SQL statement.

示例

为您的账户激活账户预算:

CALL snowflake.local.account_root_budget!ACTIVATE();

错误消息

To troubleshoot issues with account budget activation, see You can’t activate the account budget.