Schema:

ACCOUNT_USAGE

SHARES view

This Account Usage view returns all the shares owned by the current account, including dropped shares. The information in this view has a latency of up to 3 hours.

Columns

The following table provides definitions for the SHARES view columns.

ColumnData typeDescription
CREATED_ONTIMESTAMP_LTZThe timestamp when the share was created.
MODIFIED_ONTIMESTAMP_LTZThe timestamp when the share was last updated.
DELETED_ONTIMESTAMP_LTZ

The timestamp when the share was deleted. This value is NULL if the share hasn’t been deleted.

NAMEVARCHARThe name of the share.
OWNERVARCHARThe name of the role that owns the share.
COMMENTVARCHARComment associated with the share, if any.
DATABASE_NAMEVARCHAR

The name of the primary database associated with the share. This field is empty if no database has been granted to the share.

SECURE_OBJECTS_ONLYBOOLEAN

Indicates whether the share can only have secure objects granted to it.

TARGET_ACCOUNTSVARCHAR

A comma-separated list of target accounts the share is shared with (outbound). This field is empty if the share has no target accounts.

LISTING_GLOBAL_NAMEVARCHAR

Global unique name of the listing associated with the share, if any.