CURRENT_ACCOUNT_NAME

functionsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

Context functions

Returns the name of the current account. The preferred account identifier for the account consists of this account name along with the organization of the account (orgname-account_name).

Syntax

CURRENT_ACCOUNT_NAME()

Returns

Returns the name of the current account. The data type of the returned value is VARCHAR.

Example

This shows how to call the CURRENT_ACCOUNT_NAME function: Output: