SHOW GLOBAL ACCOUNTSΒΆ

Lists all the accounts in your organization that are enabled for replication and indicates the Snowflake Region in which each account is located.

Currently, linking accounts in your organization for replication requires assistance from Snowflake Support.

See also:

SHOW REPLICATION DATABASES

SyntaxΒΆ

SHOW GLOBAL ACCOUNTS [ LIKE '<pattern>' ]
Copy

ParametersΒΆ

LIKE 'pattern'

Optionally filters the command output by object name. The filter uses case-insensitive pattern matching, with support for SQL wildcard characters (% and _).

For example, the following patterns return the same results:

... LIKE '%testing%' ...
... LIKE '%TESTING%' ...

. Default: No value (no filtering is applied to the output).

Usage notesΒΆ

  • Columns that start with the prefix is_ return either Y (yes) or N (no).

  • The command does not require a running warehouse to execute.

  • The command returns a maximum of 10K records for the specified object type, as dictated by the access privileges for the role used to execute the command; any records above the 10K limit are not returned, even with a filter applied.

    To view results for which more than 10K records exist, query the corresponding view (if one exists) in the Snowflake Information Schema.

  • To post-process the output of this command, you can use the RESULT_SCAN function, which treats the output as a table that can be queried.

OutputΒΆ

The command output provides global account properties and metadata in the following columns:

Column

Description

region_group

Region group where the account is located.

snowflake_region

Snowflake Region where the account is located. A Snowflake Region is a distinct location within a cloud platform region that is isolated from other Snowflake Regions. A Snowflake Region can be either multi-tenant or single-tenant (for a Virtual Private Snowflake account).

created_on

Date and time when the account was created.

name

Name of the account.

comment

Comment for the account.

is_org_admin

Indicates whether the ORGADMIN role is enabled in an account. If TRUE, the role is enabled.

ExamplesΒΆ

Show all the global accounts whose name starts with myaccount:

SHOW GLOBAL ACCOUNTS LIKE 'myaccount%';
Copy