Skip to main content

OWNED_SHARES view

The MD_INFORMATION_SCHEMA.OWNED_SHARES view provides information about the shares that the current user created.

Schema

When you query the MD_INFORMATION_SCHEMA.OWNED_SHARES view, the query results contain one row for each share that the current user created.

The MD_INFORMATION_SCHEMA.OWNED_SHARES view has the following schema:

Column NameData TypeValue
NAMESTRINGThe name of the share
URLSTRINGThe share_url which can be used to attach the share
SOURCE_DB_NAMESTRINGThe name of the database where this share was created from
SOURCE_DB_UUIDUUIDUUID of the database where this share was created from
ACCESSSTRINGWhether anyone (referred to as UNRESTRICTED) or only organization members (referred to as ORGANIZATION) can attach to the share by its share_url
VISIBILITYSTRINGWhether the share is DISCOVERABLE or HIDDEN
UPDATESTRINGThe share’s update mode (MANUAL vs. AUTOMATIC)
CREATED_TSTIMESTAMPThe share’s creation time

Example usage

from MD_INFORMATION_SCHEMA.OWNED_SHARES;

select name, url, created_ts from MD_INFORMATION_SCHEMA.OWNED_SHARES;
nameurlsource_db_name
my_sharemd:_share/my_share/2ef6b580-2445-4f4f-bce8-c13a85812464db1