In this post we are going to cover tags and object tagging in Snowflake.
A tag is a named object, and you set it on something with a value. That is the easy part. The interesting part is how little of it is still being checked a minute later.
We will start with the tags that are already on the account, make two of our own, and build it up step by step. On the way we will put a value on an object, remove that value from the tag's own allowed list, and find the object still wearing it.
Every customer below is invented.
Episode 167 of the Snowflake SQL: Zero to Hero series on TechBrothersIT.
- Let's create some sample data
- First, twelve tags you already have
- Now let's make the two kinds of tag
- Let's set a tag on a table
- Now let's see whether the allowed values list means anything
- And now the part worth knowing about allowed values
- Let's tag a column and a schema too
- Two mistakes of mine, and what they taught me
- Now four things that just work
- Now dropping, where tags part company with policies
- Can a read-only role see the labels?
- One last thing: let's take the labels off again
Let's create some sample data
We need some objects to label. The script below makes a schema for this post, a small customers table and an orders table.
-- Sample data for this post. Every customer is invented.
USE DATABASE DEMO_DB;
CREATE OR REPLACE SCHEMA DEMO_DB.TAGS_T167
COMMENT = 'episode 167 - tags, dropped at the end';
USE SCHEMA DEMO_DB.TAGS_T167;
CREATE OR REPLACE TABLE DEMO_DB.TAGS_T167.CUSTOMERS_T167 (
CUSTOMER_ID NUMBER,
FULL_NAME VARCHAR(60),
CITY VARCHAR(40),
CARD_LAST4 VARCHAR(4)
);
INSERT INTO DEMO_DB.TAGS_T167.CUSTOMERS_T167
(CUSTOMER_ID, FULL_NAME, CITY, CARD_LAST4)
VALUES (1, 'Rosalind Vane', 'Leeds', '4417'),
(2, 'Hector Okonjo', 'Manchester', '8820'),
(3, 'Priya Raman', 'Bristol', '1093'),
(4, 'Tomas Lindqvist','Glasgow', '7756');
CREATE OR REPLACE TABLE DEMO_DB.TAGS_T167.ORDERS_T167 (
ORDER_ID NUMBER,
CUSTOMER_ID NUMBER,
AMOUNT NUMBER(10,2)
);
INSERT INTO DEMO_DB.TAGS_T167.ORDERS_T167 (ORDER_ID, CUSTOMER_ID, AMOUNT)
VALUES (10, 1, 240.00),
(11, 2, 1875.50),
(12, 3, 96.25);SELECT * FROM DEMO_DB.TAGS_T167.CUSTOMERS_T167 ORDER BY CUSTOMER_ID;| CUSTOMER_ID | FULL_NAME | CITY | CARD_LAST4 |
|---|---|---|---|
| 1 | Rosalind Vane | Leeds | 4417 |
| 2 | Hector Okonjo | Manchester | 8820 |
| 3 | Priya Raman | Bristol | 1093 |
| 4 | Tomas Lindqvist | Glasgow | 7756 |
SELECT * FROM DEMO_DB.TAGS_T167.ORDERS_T167 ORDER BY ORDER_ID;| ORDER_ID | CUSTOMER_ID | AMOUNT |
|---|---|---|
| 10 | 1 | 240.00 |
| 11 | 2 | 1875.50 |
| 12 | 3 | 96.25 |
And the control, before anything is created
There is one role excursion near the end of this post, so the secondary roles are switched off first and proved off.
USE SECONDARY ROLES NONE;| status |
|---|
| Statement executed successfully. |
SELECT CURRENT_ROLE() AS THE_ROLE, CURRENT_SECONDARY_ROLES() AS THE_SECONDARY_ROLES;| THE_ROLE | THE_SECONDARY_ROLES |
|---|---|
| ACCOUNTADMIN | {"roles":"","value":""} |
First, twelve tags you already have
Before writing a single CREATE TAG, let's see what the account already has. I had created nothing at all at this point.
SHOW TAGS IN ACCOUNT;comment and allowed_values columns are long. Scroll right| created_on | name | database_name | schema_name | owner | comment | allowed_values | owner_role_type | propagate | on_conflict | multi_value |
|---|---|---|---|---|---|---|---|---|---|---|
| 2026-05-13 11:59:18.583000-07:00 | PRODUCT_CATEGORY | SNOWFLAKE | ALERT | Product category for an alert (mirrors the alert template product taxonomy: OPENFLOW, DATA_QUALITY, TASKS, DYNAMIC_TABLES, SNOWPIPE, SNOWPIPE_STREAMING, ICEBERG, SNOWPARK, FUNCTIONS, CORTEX_SEARCH, CORTEX_ANALYST, CORTEX_AGENT, WAREHOUSE, BILLING, CORTEX, STORAGE, DATA_TRANSFER, SECURITY, REPLICATION) | ["OPENFLOW","DATA_QUALITY","TASKS","DYNAMIC_TABLES","SNOWPIPE","SNOWPIPE_STREAMING","ICEBERG","SNOWPARK","FUNCTIONS","CORTEX_SEARCH","CORTEX_ANALYST","CORTEX_AGENT","WAREHOUSE","BILLING","CORTEX","STORAGE","DATA_TRANSFER","SECURITY","REPLICATION"] | NONE | NULL | false | ||
| 2026-05-13 11:59:18.447000-07:00 | SUBCATEGORY | SNOWFLAKE | ALERT | Subcategory for an alert (mirrors the alert template subcategory taxonomy: GENERAL_CONNECTORS, GENERAL_RUNTIME, GENERAL_RUNTIME_GEN2, CHANGE_DATA_CAPTURE, CHANGE_DATA_CAPTURE_GEN2, GENERAL_CONNECTORS_GEN2, REFRESH_STATUS) | ["GENERAL_CONNECTORS","GENERAL_RUNTIME","GENERAL_RUNTIME_GEN2","CHANGE_DATA_CAPTURE","CHANGE_DATA_CAPTURE_GEN2","GENERAL_CONNECTORS_GEN2","REFRESH_STATUS"] | NONE | NULL | false | ||
| 2026-03-24 01:58:08.912000-07:00 | CERTIFICATION_STATUS | SNOWFLAKE | CORE | Indicates the current validation and readiness level of the data for production use. | ["DRAFT","TO BE REVIEWED","IN REVIEW","CERTIFIED","REJECTED","DEPRECATED"] | NONE | NULL | false | ||
| 2021-05-13 18:25:14.246000-07:00 | PRIVACY_CATEGORY | SNOWFLAKE | CORE | Privacy category of a column: sensitive, quasi_identifier, or identifier | ["IDENTIFIER","INSENSITIVE","QUASI_IDENTIFIER","SENSITIVE"] | NONE | NULL | false | ||
| 2021-05-13 18:29:14.071000-07:00 | SEMANTIC_CATEGORY | SNOWFLAKE | CORE | Describes the category of data in a column | NULL | NONE | NULL | false | ||
| 2025-06-24 02:09:44.747000-07:00 | SKIP_SENSITIVE_DATA_CLASSIFICATION | SNOWFLAKE | CORE | Whether or not to exclude the object from sensitive data classification. | ["TRUE","FALSE"] | NONE | NULL | false | ||
| 2026-09-21 18:34:22.684000-07:00 | CERTIFICATION_STATUS | SNOWFLAKE | TAGS | SNOWFLAKE | Indicates the current validation and readiness level of the data for production use. | ["DRAFT","TO BE REVIEWED","IN REVIEW","CERTIFIED","REJECTED","DEPRECATED"] | APPLICATION | NONE | NULL | false |
| 2026-09-21 18:34:22.572000-07:00 | COST_CENTER | SNOWFLAKE | TAGS | SNOWFLAKE | Associates data with a cost center for cost allocation and management. | NULL | APPLICATION | NONE | NULL | false |
| 2026-09-21 18:34:23.614000-07:00 | ENVIRONMENT | SNOWFLAKE | TAGS | SNOWFLAKE | Identifies the deployment environment an object belongs to (production, staging, test, or development). | ["PRODUCTION","STAGING","TEST","DEVELOPMENT"] | APPLICATION | NONE | NULL | false |
| 2026-09-21 18:34:23.751000-07:00 | PROJECT | SNOWFLAKE | TAGS | SNOWFLAKE | Associates an object with a project for organization and cost tracking. | NULL | APPLICATION | NONE | NULL | false |
| 2026-09-21 18:34:23.882000-07:00 | SENSITIVITY | SNOWFLAKE | TAGS | SNOWFLAKE | Classifies the sensitivity level of data on an object or column. Allowed values are ordered from most to least sensitive. If you are on Enterprise Edition or higher, a role with APPLY TAG ON ACCOUNT can enable automatic propagation by running ALTER TAG SNOWFLAKE.TAGS.SENSITIVITY SET PROPAGATE = ON_DEPENDENCY_AND_DATA_MOVEMENT ON_CONFLICT = ALLOWED_VALUES_SEQUENCE, which makes the most sensitive value win on conflict. | ["RESTRICTED","CONFIDENTIAL","INTERNAL","PUBLIC"] | APPLICATION | NONE | NULL | false |
| 2026-09-21 18:34:26.814000-07:00 | SKIP_TAG_PROPAGATION | SNOWFLAKE | TAGS | SNOWFLAKE | Apply to a column or table to exclude it from tag propagation cascades. | NULL | APPLICATION | NONE | NULL | false |
SELECT COUNT(*) AS TAGS_ALREADY_HERE
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| TAGS_ALREADY_HERE |
|---|
| 12 |
Twelve, and look at the database column. Every one of them is in SNOWFLAKE, across three schemas: ALERT, CORE and TAGS. These came with the account.
One of them is worth reading properly. SNOWFLAKE.TAGS.SENSITIVITY has four allowed values, and its own comment says they are ordered from most sensitive to least.
So check what is already there before you create one. A governance tag somebody will recognise is better than a governance tag only your team knows about, and there is a reasonable chance the one you were about to write already exists.
That grid is also a good place to point out something about empty cells. In the owner and comment columns an unset value comes back as an empty string, which is why those cells are blank rather than reading NULL. In allowed_values and on_conflict it is a real SQL NULL, and those cells say so. The two are different things and the grids on this page do not pretend otherwise.
Now let's make the two kinds of tag
The simplest tag is a name and a comment, and nothing else.
CREATE OR REPLACE TAG DEMO_DB.TAGS_T167.OWNER_TEAM_T167
COMMENT = 'episode 167 - free-text tag, any value allowed';| status |
|---|
| Tag OWNER_TEAM_T167 successfully created. |
SELECT "name", "database_name", "schema_name", "owner", "comment", "allowed_values"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | database_name | schema_name | owner | comment | allowed_values |
|---|---|---|---|---|---|
| OWNER_TEAM_T167 | DEMO_DB | TAGS_T167 | ACCOUNTADMIN | episode 167 - free-text tag, any value allowed | NULL |
Note the allowed_values column: a real NULL. This tag will take any value we give it.
Now the other kind. A tag that says, in the CREATE statement, which values it will accept.
CREATE OR REPLACE TAG DEMO_DB.TAGS_T167.SENSITIVITY_T167
ALLOWED_VALUES 'PUBLIC', 'INTERNAL', 'RESTRICTED'
COMMENT = 'episode 167 - three allowed values, and I am about to test that';| status |
|---|
| Tag SENSITIVITY_T167 successfully created. |
SELECT "name", "allowed_values", "comment"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | allowed_values | comment |
|---|---|---|
| SENSITIVITY_T167 | ["PUBLIC","INTERNAL","RESTRICTED"] | episode 167 - three allowed values, and I am about to test that |
A JSON array in allowed_values, with the three values we named.
SELECT COUNT(*) AS MY_TAGS
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| MY_TAGS |
|---|
| 2 |
Two tags of our own. Neither of them is on anything yet.
Let's set a tag on a table
Setting a tag is ALTER on whatever you are labelling, then SET TAG, then the value.
ALTER TABLE DEMO_DB.TAGS_T167.CUSTOMERS_T167
SET TAG DEMO_DB.TAGS_T167.OWNER_TEAM_T167 = 'data-platform';| status |
|---|
| Statement executed successfully. |
ALTER TABLE DEMO_DB.TAGS_T167.CUSTOMERS_T167
SET TAG DEMO_DB.TAGS_T167.SENSITIVITY_T167 = 'RESTRICTED';| status |
|---|
| Statement executed successfully. |
Two tags on one table, which is allowed. Now let's ask what is on that table.
SELECT TAG_DATABASE, TAG_SCHEMA, TAG_NAME, TAG_VALUE, LEVEL, OBJECT_NAME
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.CUSTOMERS_T167', 'TABLE'));| TAG_DATABASE | TAG_SCHEMA | TAG_NAME | TAG_VALUE | LEVEL | OBJECT_NAME |
|---|---|---|---|---|---|
| DEMO_DB | TAGS_T167 | OWNER_TEAM_T167 | data-platform | TABLE | CUSTOMERS_T167 |
| DEMO_DB | TAGS_T167 | SENSITIVITY_T167 | RESTRICTED | TABLE | CUSTOMERS_T167 |
Two rows, two values, and LEVEL reads TABLE on both. TAG_REFERENCES is the function that answers this question, and we will use it all the way through.
SELECT COUNT(*) AS TAGS_THE_FUNCTION_FOUND
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.CUSTOMERS_T167', 'TABLE'));| TAGS_THE_FUNCTION_FOUND |
|---|
| 2 |
And what the account-level view says
There is also a view in ACCOUNT_USAGE for the same question. Let's ask it about the same table.
SELECT TAG_NAME, TAG_VALUE, OBJECT_NAME, DOMAIN
FROM SNOWFLAKE.ACCOUNT_USAGE.TAG_REFERENCES
WHERE OBJECT_NAME = 'CUSTOMERS_T167'
ORDER BY TAG_NAME;| TAG_NAME | TAG_VALUE | OBJECT_NAME | DOMAIN |
|---|
SELECT COUNT(*) AS TAGS_THE_VIEW_FOUND
FROM SNOWFLAKE.ACCOUNT_USAGE.TAG_REFERENCES
WHERE OBJECT_NAME = 'CUSTOMERS_T167';| TAGS_THE_VIEW_FOUND |
|---|
| 0 |
Nought. And asked about every tag reference it knows of anywhere, the same answer.
SELECT COUNT(*) AS EVERY_TAG_REFERENCE_THE_VIEW_KNOWS
FROM SNOWFLAKE.ACCOUNT_USAGE.TAG_REFERENCES;| EVERY_TAG_REFERENCE_THE_VIEW_KNOWS |
|---|
| 0 |
That is consistent with the latency these account usage views always have. The tag was set seconds earlier. I am not going to claim more than the grid shows.
Now let's see whether the allowed values list means anything
Let's put a value from the list on the orders table.
ALTER TABLE DEMO_DB.TAGS_T167.ORDERS_T167
SET TAG DEMO_DB.TAGS_T167.SENSITIVITY_T167 = 'INTERNAL';| status |
|---|
| Statement executed successfully. |
SELECT TAG_NAME, TAG_VALUE, OBJECT_NAME
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.ORDERS_T167', 'TABLE'));| TAG_NAME | TAG_VALUE | OBJECT_NAME |
|---|---|---|
| SENSITIVITY_T167 | INTERNAL | ORDERS_T167 |
That took. Now a value that is not on the list, on the same tag and the same table.
ALTER TABLE DEMO_DB.TAGS_T167.ORDERS_T167
SET TAG DEMO_DB.TAGS_T167.SENSITIVITY_T167 = 'TOP_SECRET';391826 (23001): Value 'TOP_SECRET' is not allowed by the specified allowed_values for tag 'SENSITIVITY_T167'.
391826, and the message names the value and the tag. Let's check what the object says now.
SELECT TAG_NAME, TAG_VALUE, OBJECT_NAME
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.ORDERS_T167', 'TABLE'));| TAG_NAME | TAG_VALUE | OBJECT_NAME |
|---|---|---|
| SENSITIVITY_T167 | INTERNAL | ORDERS_T167 |
The old value survived. Nothing was half written.
Now the same string on the free-text tag, which has no list at all.
ALTER TABLE DEMO_DB.TAGS_T167.ORDERS_T167
SET TAG DEMO_DB.TAGS_T167.OWNER_TEAM_T167 = 'TOP_SECRET';| status |
|---|
| Statement executed successfully. |
SELECT TAG_NAME, TAG_VALUE, OBJECT_NAME
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.ORDERS_T167', 'TABLE'))
ORDER BY TAG_NAME;| TAG_NAME | TAG_VALUE | OBJECT_NAME |
|---|---|---|
| OWNER_TEAM_T167 | TOP_SECRET | ORDERS_T167 |
| SENSITIVITY_T167 | INTERNAL | ORDERS_T167 |
Accepted. So the list is doing real work: two tags, one value, one yes and one no.
And now the part worth knowing about allowed values
Let's add that refused value to the tag's allowed list.
ALTER TAG DEMO_DB.TAGS_T167.SENSITIVITY_T167 ADD ALLOWED_VALUES 'TOP_SECRET';| status |
|---|
| Statement executed successfully. |
SELECT "name", "allowed_values"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | allowed_values |
|---|---|
| SENSITIVITY_T167 | ["PUBLIC","INTERNAL","RESTRICTED","TOP_SECRET"] |
Four values now. So let's run the SET TAG that was refused a minute ago.
ALTER TABLE DEMO_DB.TAGS_T167.ORDERS_T167
SET TAG DEMO_DB.TAGS_T167.SENSITIVITY_T167 = 'TOP_SECRET';| status |
|---|
| Statement executed successfully. |
SELECT TAG_NAME, TAG_VALUE
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.ORDERS_T167', 'TABLE'))
ORDER BY TAG_NAME;| TAG_NAME | TAG_VALUE |
|---|---|
| OWNER_TEAM_T167 | TOP_SECRET |
| SENSITIVITY_T167 | TOP_SECRET |
It takes. The orders table now reads TOP_SECRET on both tags.
Now let's take that value back off the list
The object is using it. I predicted this would be refused.
ALTER TAG DEMO_DB.TAGS_T167.SENSITIVITY_T167 DROP ALLOWED_VALUES 'TOP_SECRET';| status |
|---|
| Statement executed successfully. |
It succeeds. And the list is back to three.
SELECT "name", "allowed_values"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | allowed_values |
|---|---|
| SENSITIVITY_T167 | ["PUBLIC","INTERNAL","RESTRICTED"] |
So that value is no longer permitted by this tag. Let's ask the object what it is labelled.
SELECT TAG_NAME, TAG_VALUE
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.ORDERS_T167', 'TABLE'))
ORDER BY TAG_NAME;| TAG_NAME | TAG_VALUE |
|---|---|
| OWNER_TEAM_T167 | TOP_SECRET |
| SENSITIVITY_T167 | TOP_SECRET |
TOP_SECRET. The allowed values list is checked when you write a value, and never again. So you can end up with an object labelled with a value its own tag does not permit, and nothing anywhere tells you. Nothing re-validates, and nothing warned us when we removed the value.
Let's tag a column and a schema too
A tag does not have to go on a whole table. Let's put one on a single column.
ALTER TABLE DEMO_DB.TAGS_T167.CUSTOMERS_T167
MODIFY COLUMN CARD_LAST4
SET TAG DEMO_DB.TAGS_T167.SENSITIVITY_T167 = 'RESTRICTED';| status |
|---|
| Statement executed successfully. |
Now let's ask about the table.
SELECT TAG_NAME, TAG_VALUE, LEVEL, OBJECT_NAME, COLUMN_NAME
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.CUSTOMERS_T167', 'TABLE'))
ORDER BY LEVEL, TAG_NAME;| TAG_NAME | TAG_VALUE | LEVEL | OBJECT_NAME | COLUMN_NAME |
|---|---|---|---|---|
| OWNER_TEAM_T167 | data-platform | TABLE | CUSTOMERS_T167 | NULL |
| SENSITIVITY_T167 | RESTRICTED | TABLE | CUSTOMERS_T167 | NULL |
Two rows, both at TABLE level, and COLUMN_NAME is a real NULL on both. The column's own tag is not in there.
Now let's ask about the column instead.
SELECT TAG_NAME, TAG_VALUE, LEVEL, COLUMN_NAME
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.CUSTOMERS_T167.CARD_LAST4', 'COLUMN'));| TAG_NAME | TAG_VALUE | LEVEL | COLUMN_NAME |
|---|---|---|---|
| OWNER_TEAM_T167 | data-platform | TABLE | CARD_LAST4 |
| SENSITIVITY_T167 | RESTRICTED | COLUMN | CARD_LAST4 |
Two rows again, and this time the LEVEL column earns its keep. One row is the column's own tag at COLUMN level. The other is the table's tag at TABLE level, which the column inherits.
So a column shows you its own labels and the ones it inherits, and tells you which is which.
And a schema is an object too
ALTER SCHEMA DEMO_DB.TAGS_T167
SET TAG DEMO_DB.TAGS_T167.OWNER_TEAM_T167 = 'data-platform';| status |
|---|
| Statement executed successfully. |
SELECT TAG_NAME, TAG_VALUE, LEVEL, OBJECT_NAME, DOMAIN
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167', 'SCHEMA'));| TAG_NAME | TAG_VALUE | LEVEL | OBJECT_NAME | DOMAIN |
|---|---|---|---|---|
| OWNER_TEAM_T167 | data-platform | SCHEMA | TAGS_T167 | SCHEMA |
One tag, with LEVEL and DOMAIN both reading SCHEMA.
Now the obvious place to look, which does not help
Let's try DESCRIBE TABLE on the tagged table.
DESCRIBE TABLE DEMO_DB.TAGS_T167.CUSTOMERS_T167;| name | type | kind | null? | default | primary key | unique key | check | expression | comment | policy name | privacy domain | write default |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CUSTOMER_ID | NUMBER(38,0) | COLUMN | Y | NULL | N | N | NULL | NULL | NULL | NULL | NULL | NULL |
| FULL_NAME | VARCHAR(60) | COLUMN | Y | NULL | N | N | NULL | NULL | NULL | NULL | NULL | NULL |
| CITY | VARCHAR(40) | COLUMN | Y | NULL | N | N | NULL | NULL | NULL | NULL | NULL | NULL |
| CARD_LAST4 | VARCHAR(4) | COLUMN | Y | NULL | N | N | NULL | NULL | NULL | NULL | NULL | NULL |
SELECT "name", "type", "null?", "comment"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | type | null? | comment |
|---|---|---|---|
| CUSTOMER_ID | NUMBER(38,0) | Y | NULL |
| FULL_NAME | VARCHAR(60) | Y | NULL |
| CITY | VARCHAR(40) | Y | NULL |
| CARD_LAST4 | VARCHAR(4) | Y | NULL |
Columns, types, nullability and comments. Nothing about tags at all. That is the third post running where the catalogue answer is somewhere other than DESCRIBE.
Two mistakes of mine, and what they taught me
Both of these are left on the page, because the refusals are better than the statements were.
A tag goes on a view as well, so let's make one and label it.
CREATE OR REPLACE VIEW DEMO_DB.TAGS_T167.BIG_ORDERS_T167 AS
SELECT ORDER_ID, CUSTOMER_ID, AMOUNT
FROM DEMO_DB.TAGS_T167.ORDERS_T167
WHERE AMOUNT > 100;| status |
|---|
| View BIG_ORDERS_T167 successfully created. |
ALTER VIEW DEMO_DB.TAGS_T167.BIG_ORDERS_T167
SET TAG DEMO_DB.TAGS_T167.SENSITIVITY_T167 = 'PUBLIC';| status |
|---|
| Statement executed successfully. |
That worked. Then I asked TAG_REFERENCES about the view, passing VIEW as the object type.
SELECT TAG_NAME, TAG_VALUE, DOMAIN, OBJECT_NAME
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.BIG_ORDERS_T167', 'VIEW'));391806 (0A000): SQL compilation error: Invalid value VIEW for argument OBJECT_TYPE. Please use object type TABLE for all kinds of table-like objects.
391806, and the second sentence is the answer: please use object type TABLE for all kinds of table-like objects. The function groups views in with tables, and the error says so better than my query asked.
Asked the right way, the schema's tag shows up on a table inside it as well.
SELECT TAG_NAME, TAG_VALUE, LEVEL, OBJECT_NAME, DOMAIN
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.ORDERS_T167', 'TABLE'))
ORDER BY LEVEL, TAG_NAME;| TAG_NAME | TAG_VALUE | LEVEL | OBJECT_NAME | DOMAIN |
|---|---|---|---|---|
| OWNER_TEAM_T167 | TOP_SECRET | TABLE | ORDERS_T167 | TABLE |
| SENSITIVITY_T167 | INTERNAL | TABLE | ORDERS_T167 | TABLE |
SELECT COUNT(*) AS ROWS_FOR_THE_ORDERS_TABLE
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.ORDERS_T167', 'TABLE'));| ROWS_FOR_THE_ORDERS_TABLE |
|---|
| 2 |
And the second mistake
I wanted the account-wide view that answers this question with lineage, so I wrote the name I thought it had and ran it.
SELECT TAG_NAME, TAG_VALUE, OBJECT_NAME, COLUMN_NAME
FROM SNOWFLAKE.ACCOUNT_USAGE.TAG_REFERENCES_WITH_LINEAGE
WHERE TAG_NAME = 'SENSITIVITY_T167'
ORDER BY OBJECT_NAME;002003 (42S02): SQL compilation error: Object 'SNOWFLAKE.ACCOUNT_USAGE.TAG_REFERENCES_WITH_LINEAGE' does not exist or not authorized. Your primary role ACCOUNTADMIN must have at least one privilege granted on TABLE SNOWFLAKE.ACCOUNT_USAGE.TAG_REFERENCES_WITH_LINEAGE.
002003. It is not on this account. I named a view without proving it was there first, which is exactly the habit this course exists to avoid.
The views that are there have nothing in them yet, for the same latency reason as before.
SELECT COUNT(*) AS OBJECTS_WITH_THAT_TAG
FROM SNOWFLAKE.ACCOUNT_USAGE.TAG_REFERENCES
WHERE TAG_NAME = 'SENSITIVITY_T167';| OBJECTS_WITH_THAT_TAG |
|---|
| 0 |
SELECT COUNT(*) AS MY_TAGS_THE_VIEW_KNOWS
FROM SNOWFLAKE.ACCOUNT_USAGE.TAGS
WHERE TAG_NAME LIKE '%\\_T167' ESCAPE '\\';| MY_TAGS_THE_VIEW_KNOWS |
|---|
| 0 |
Now four things that just work
Let's set a tag that is already on the table to a different value.
ALTER TABLE DEMO_DB.TAGS_T167.CUSTOMERS_T167
SET TAG DEMO_DB.TAGS_T167.OWNER_TEAM_T167 = 'analytics';| status |
|---|
| Statement executed successfully. |
SELECT TAG_NAME, TAG_VALUE, LEVEL, COLUMN_NAME
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.CUSTOMERS_T167', 'TABLE'))
ORDER BY LEVEL, TAG_NAME;| TAG_NAME | TAG_VALUE | LEVEL | COLUMN_NAME |
|---|---|---|---|
| OWNER_TEAM_T167 | analytics | TABLE | NULL |
| SENSITIVITY_T167 | RESTRICTED | TABLE | NULL |
SELECT COUNT(*) AS TAGS_ON_THE_CUSTOMERS_TABLE
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.CUSTOMERS_T167', 'TABLE'));| TAGS_ON_THE_CUSTOMERS_TABLE |
|---|
| 2 |
Still two rows. SET TAG on a tag an object already carries replaces the value rather than adding a second one.
Now let's unset one, and then unset it again.
ALTER TABLE DEMO_DB.TAGS_T167.ORDERS_T167
UNSET TAG DEMO_DB.TAGS_T167.OWNER_TEAM_T167;| status |
|---|
| Statement executed successfully. |
SELECT TAG_NAME, TAG_VALUE
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.ORDERS_T167', 'TABLE'))
ORDER BY TAG_NAME;| TAG_NAME | TAG_VALUE |
|---|---|
| OWNER_TEAM_T167 | data-platform |
| SENSITIVITY_T167 | TOP_SECRET |
Look carefully at that grid. The free-text tag is still listed, but its value has changed to the one we set on the schema. The table's own value was hiding the schema's, and removing it let the schema's value show through.
That is read off the value rather than off a LEVEL column, because the statement above does not ask for one. The schema's value was set in the last section but one, and the table's own was something else entirely.
And unsetting the same tag a second time, when the table no longer has one of its own.
ALTER TABLE DEMO_DB.TAGS_T167.ORDERS_T167
UNSET TAG DEMO_DB.TAGS_T167.OWNER_TEAM_T167;| status |
|---|
| Statement executed successfully. |
Statement executed successfully. Not an error, which is the same answer a masking policy gave in Episode 165 for the same shape of statement.
A name that already exists
CREATE TAG DEMO_DB.TAGS_T167.OWNER_TEAM_T167
COMMENT = 'episode 167 - should not appear';002002 (42710): SQL compilation error: Object 'DEMO_DB.TAGS_T167.OWNER_TEAM_T167' already exists.
002002. With IF NOT EXISTS it succeeds instead.
CREATE TAG IF NOT EXISTS DEMO_DB.TAGS_T167.OWNER_TEAM_T167
COMMENT = 'episode 167 - should not appear';| status |
|---|
| OWNER_TEAM_T167 already exists, statement succeeded. |
SELECT "name", "comment"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | comment |
|---|---|
| OWNER_TEAM_T167 | episode 167 - free-text tag, any value allowed |
And the comment is the original one. IF NOT EXISTS noticed the tag was there and stopped, so the comment in the statement we just ran never landed.
And a duplicate allowed value
I marked this one as expected to fail too.
CREATE OR REPLACE TAG DEMO_DB.TAGS_T167.DUPES_T167
ALLOWED_VALUES 'A', 'B', 'A';| status |
|---|
| Tag DUPES_T167 successfully created. |
SELECT "name", "allowed_values"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| name | allowed_values |
|---|---|
| DUPES_T167 | ["A","B"] |
Created, and the duplicate was silently dropped. Two values stored out of the three we wrote.
And two typos, for completeness
ALTER TABLE DEMO_DB.TAGS_T167.ORDERS_T167
SET TAG DEMO_DB.TAGS_T167.NO_SUCH_TAG_T167 = 'anything';002003 (02000): SQL compilation error: Tag 'DEMO_DB.TAGS_T167.NO_SUCH_TAG_T167' does not exist or not authorized. Your primary role ACCOUNTADMIN must have at least one privilege granted on TAG DEMO_DB.TAGS_T167.NO_SUCH_TAG_T167.
ALTER TABLE DEMO_DB.TAGS_T167.NO_SUCH_TABLE_T167
SET TAG DEMO_DB.TAGS_T167.OWNER_TEAM_T167 = 'anything';002003 (42S02): SQL compilation error: Table 'DEMO_DB.TAGS_T167.NO_SUCH_TABLE_T167' does not exist or not authorized. Your primary role ACCOUNTADMIN must have at least one privilege granted on TABLE DEMO_DB.TAGS_T167.NO_SUCH_TABLE_T167.
The same 002003 from both, naming the tag in one case and the table in the other.
Now dropping, where tags part company with policies
First the easy direction. Let's make a throwaway table, tag it, and drop the table.
CREATE OR REPLACE TABLE DEMO_DB.TAGS_T167.DOOMED_T167 (ID NUMBER);| status |
|---|
| Table DOOMED_T167 successfully created. |
ALTER TABLE DEMO_DB.TAGS_T167.DOOMED_T167
SET TAG DEMO_DB.TAGS_T167.OWNER_TEAM_T167 = 'about-to-vanish';| status |
|---|
| Statement executed successfully. |
SELECT TAG_NAME, TAG_VALUE, OBJECT_NAME
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.DOOMED_T167', 'TABLE'));| TAG_NAME | TAG_VALUE | OBJECT_NAME |
|---|---|---|
| OWNER_TEAM_T167 | about-to-vanish | DOOMED_T167 |
DROP TABLE DEMO_DB.TAGS_T167.DOOMED_T167;| status |
|---|
| DOOMED_T167 successfully dropped. |
The table goes, as you would expect. And the tag?
SELECT COUNT(*) AS TAG_STILL_EXISTS
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| TAG_STILL_EXISTS |
|---|
| 1 |
Still there. Dropping an object does not drop the tags that were on it, which is fair enough.
Now the other direction
The free-text tag is set on the customers table and on the schema right now. Let's drop the tag.
DROP TAG DEMO_DB.TAGS_T167.OWNER_TEAM_T167;| status |
|---|
| OWNER_TEAM_T167 successfully dropped. |
successfully dropped. No refusal, no warning, and no mention of what it was attached to.
SELECT "name", "comment"
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()))
ORDER BY "name";| name | comment |
|---|---|
| DUPES_T167 | |
| SENSITIVITY_T167 | episode 167 - three allowed values, and I am about to test that |
And the customers table reports one tag where it had two.
SELECT TAG_NAME, TAG_VALUE, LEVEL, COLUMN_NAME
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.CUSTOMERS_T167', 'TABLE'))
ORDER BY LEVEL, TAG_NAME;| TAG_NAME | TAG_VALUE | LEVEL | COLUMN_NAME |
|---|---|---|---|
| SENSITIVITY_T167 | RESTRICTED | TABLE | NULL |
SELECT COUNT(*) AS TAGS_LEFT_ON_THE_CUSTOMERS_TABLE
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.CUSTOMERS_T167', 'TABLE'));| TAGS_LEFT_ON_THE_CUSTOMERS_TABLE |
|---|
| 1 |
So every reference to that tag went with it, on every object that carried it.
Compare that with the last two posts. A masking policy that is attached refuses to be dropped with 003531. A row access policy that is attached refuses the same way. A tag does not refuse at all.
Tags and objects do not protect each other in either direction, and that is worth knowing before you write a DROP TAG in a script.
Can a read-only role see the labels?
Let's make a role with usage and select and nothing else, holding no privilege on any tag.
-- A role with nothing but usage and select. No privilege on any tag.
-- The GRANT ROLE line names a user; YOUR_USER_NAME stands in for mine.
CREATE OR REPLACE ROLE RTAG_T167
COMMENT = 'episode 167 - can read the table, holds nothing on the tag';
GRANT USAGE ON DATABASE DEMO_DB TO ROLE RTAG_T167;
GRANT USAGE ON SCHEMA DEMO_DB.TAGS_T167 TO ROLE RTAG_T167;
GRANT SELECT ON TABLE DEMO_DB.TAGS_T167.CUSTOMERS_T167 TO ROLE RTAG_T167;
GRANT USAGE ON WAREHOUSE COMPUTE_WH TO ROLE RTAG_T167;
GRANT ROLE RTAG_T167 TO USER YOUR_USER_NAME;USE ROLE RTAG_T167;| status |
|---|
| Statement executed successfully. |
SELECT CURRENT_ROLE() AS THE_ROLE, CURRENT_SECONDARY_ROLES() AS THE_SECONDARY_ROLES;| THE_ROLE | THE_SECONDARY_ROLES |
|---|---|
| RTAG_T167 | {"roles":"","value":""} |
It can read the table, which is what it was granted.
SELECT CUSTOMER_ID, FULL_NAME, CITY
FROM DEMO_DB.TAGS_T167.CUSTOMERS_T167
ORDER BY CUSTOMER_ID;| CUSTOMER_ID | FULL_NAME | CITY |
|---|---|---|
| 1 | Rosalind Vane | Leeds |
| 2 | Hector Okonjo | Manchester |
| 3 | Priya Raman | Bristol |
| 4 | Tomas Lindqvist | Glasgow |
Now can it see what that table is labelled?
SELECT TAG_NAME, TAG_VALUE, LEVEL, COLUMN_NAME
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.CUSTOMERS_T167', 'TABLE'))
ORDER BY TAG_NAME;| TAG_NAME | TAG_VALUE | LEVEL | COLUMN_NAME |
|---|---|---|---|
| SENSITIVITY_T167 | RESTRICTED | TABLE | NULL |
SELECT COUNT(*) AS LABELS_VISIBLE_TO_THAT_ROLE
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.CUSTOMERS_T167', 'TABLE'));| LABELS_VISIBLE_TO_THAT_ROLE |
|---|
| 1 |
Yes. And it can list the tags themselves, with their allowed values and comments.
SHOW TAGS IN SCHEMA DEMO_DB.TAGS_T167;| created_on | name | database_name | schema_name | owner | comment | allowed_values | owner_role_type | propagate | on_conflict | multi_value |
|---|---|---|---|---|---|---|---|---|---|---|
| 2026-10-07 12:39:47.342000-07:00 | DUPES_T167 | DEMO_DB | TAGS_T167 | ACCOUNTADMIN | ["A","B"] | ROLE | NONE | NULL | false | |
| 2026-10-07 12:39:23.963000-07:00 | SENSITIVITY_T167 | DEMO_DB | TAGS_T167 | ACCOUNTADMIN | episode 167 - three allowed values, and I am about to test that | ["PUBLIC","INTERNAL","RESTRICTED"] | ROLE | NONE | NULL | false |
So a label is metadata. Anyone who can see the object can read what you wrote on it. Do not put anything in a tag value or a tag comment that you would not want every reader of that table to see.
USE ROLE ACCOUNTADMIN;| status |
|---|
| Statement executed successfully. |
SELECT CURRENT_ROLE() AS THE_ROLE, CURRENT_SECONDARY_ROLES() AS THE_SECONDARY_ROLES;| THE_ROLE | THE_SECONDARY_ROLES |
|---|---|
| ACCOUNTADMIN | {"roles":"","value":""} |
One last thing: let's take the labels off again
Let's unset what is left and check the table is clean.
ALTER TABLE DEMO_DB.TAGS_T167.CUSTOMERS_T167
MODIFY COLUMN CARD_LAST4 UNSET TAG DEMO_DB.TAGS_T167.SENSITIVITY_T167;| status |
|---|
| Statement executed successfully. |
ALTER TABLE DEMO_DB.TAGS_T167.CUSTOMERS_T167
UNSET TAG DEMO_DB.TAGS_T167.SENSITIVITY_T167;| status |
|---|
| Statement executed successfully. |
SELECT COUNT(*) AS REFERENCES_LEFT
FROM TABLE(DEMO_DB.INFORMATION_SCHEMA.TAG_REFERENCES(
'DEMO_DB.TAGS_T167.CUSTOMERS_T167', 'TABLE'));| REFERENCES_LEFT |
|---|
| 0 |
Nothing left on it. And here is the account at the end, after our tags, the view, the tables, the role and the schema have gone.
SHOW TAGS IN ACCOUNT;| created_on | name | database_name | schema_name | owner | comment | allowed_values | owner_role_type | propagate | on_conflict | multi_value |
|---|---|---|---|---|---|---|---|---|---|---|
| 2026-05-13 11:59:18.583000-07:00 | PRODUCT_CATEGORY | SNOWFLAKE | ALERT | Product category for an alert (mirrors the alert template product taxonomy: OPENFLOW, DATA_QUALITY, TASKS, DYNAMIC_TABLES, SNOWPIPE, SNOWPIPE_STREAMING, ICEBERG, SNOWPARK, FUNCTIONS, CORTEX_SEARCH, CORTEX_ANALYST, CORTEX_AGENT, WAREHOUSE, BILLING, CORTEX, STORAGE, DATA_TRANSFER, SECURITY, REPLICATION) | ["OPENFLOW","DATA_QUALITY","TASKS","DYNAMIC_TABLES","SNOWPIPE","SNOWPIPE_STREAMING","ICEBERG","SNOWPARK","FUNCTIONS","CORTEX_SEARCH","CORTEX_ANALYST","CORTEX_AGENT","WAREHOUSE","BILLING","CORTEX","STORAGE","DATA_TRANSFER","SECURITY","REPLICATION"] | NONE | NULL | false | ||
| 2026-05-13 11:59:18.447000-07:00 | SUBCATEGORY | SNOWFLAKE | ALERT | Subcategory for an alert (mirrors the alert template subcategory taxonomy: GENERAL_CONNECTORS, GENERAL_RUNTIME, GENERAL_RUNTIME_GEN2, CHANGE_DATA_CAPTURE, CHANGE_DATA_CAPTURE_GEN2, GENERAL_CONNECTORS_GEN2, REFRESH_STATUS) | ["GENERAL_CONNECTORS","GENERAL_RUNTIME","GENERAL_RUNTIME_GEN2","CHANGE_DATA_CAPTURE","CHANGE_DATA_CAPTURE_GEN2","GENERAL_CONNECTORS_GEN2","REFRESH_STATUS"] | NONE | NULL | false | ||
| 2026-03-24 01:58:08.912000-07:00 | CERTIFICATION_STATUS | SNOWFLAKE | CORE | Indicates the current validation and readiness level of the data for production use. | ["DRAFT","TO BE REVIEWED","IN REVIEW","CERTIFIED","REJECTED","DEPRECATED"] | NONE | NULL | false | ||
| 2021-05-13 18:25:14.246000-07:00 | PRIVACY_CATEGORY | SNOWFLAKE | CORE | Privacy category of a column: sensitive, quasi_identifier, or identifier | ["IDENTIFIER","INSENSITIVE","QUASI_IDENTIFIER","SENSITIVE"] | NONE | NULL | false | ||
| 2021-05-13 18:29:14.071000-07:00 | SEMANTIC_CATEGORY | SNOWFLAKE | CORE | Describes the category of data in a column | NULL | NONE | NULL | false | ||
| 2025-06-24 02:09:44.747000-07:00 | SKIP_SENSITIVE_DATA_CLASSIFICATION | SNOWFLAKE | CORE | Whether or not to exclude the object from sensitive data classification. | ["TRUE","FALSE"] | NONE | NULL | false | ||
| 2026-09-21 18:34:22.684000-07:00 | CERTIFICATION_STATUS | SNOWFLAKE | TAGS | SNOWFLAKE | Indicates the current validation and readiness level of the data for production use. | ["DRAFT","TO BE REVIEWED","IN REVIEW","CERTIFIED","REJECTED","DEPRECATED"] | APPLICATION | NONE | NULL | false |
| 2026-09-21 18:34:22.572000-07:00 | COST_CENTER | SNOWFLAKE | TAGS | SNOWFLAKE | Associates data with a cost center for cost allocation and management. | NULL | APPLICATION | NONE | NULL | false |
| 2026-09-21 18:34:23.614000-07:00 | ENVIRONMENT | SNOWFLAKE | TAGS | SNOWFLAKE | Identifies the deployment environment an object belongs to (production, staging, test, or development). | ["PRODUCTION","STAGING","TEST","DEVELOPMENT"] | APPLICATION | NONE | NULL | false |
| 2026-09-21 18:34:23.751000-07:00 | PROJECT | SNOWFLAKE | TAGS | SNOWFLAKE | Associates an object with a project for organization and cost tracking. | NULL | APPLICATION | NONE | NULL | false |
| 2026-09-21 18:34:23.882000-07:00 | SENSITIVITY | SNOWFLAKE | TAGS | SNOWFLAKE | Classifies the sensitivity level of data on an object or column. Allowed values are ordered from most to least sensitive. If you are on Enterprise Edition or higher, a role with APPLY TAG ON ACCOUNT can enable automatic propagation by running ALTER TAG SNOWFLAKE.TAGS.SENSITIVITY SET PROPAGATE = ON_DEPENDENCY_AND_DATA_MOVEMENT ON_CONFLICT = ALLOWED_VALUES_SEQUENCE, which makes the most sensitive value win on conflict. | ["RESTRICTED","CONFIDENTIAL","INTERNAL","PUBLIC"] | APPLICATION | NONE | NULL | false |
| 2026-09-21 18:34:26.814000-07:00 | SKIP_TAG_PROPAGATION | SNOWFLAKE | TAGS | SNOWFLAKE | Apply to a column or table to exclude it from tag propagation cascades. | NULL | APPLICATION | NONE | NULL | false |
SELECT COUNT(*) AS MY_TAGS_LEFT
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()))
WHERE "name" LIKE '%\\_T167' ESCAPE '\\';| MY_TAGS_LEFT |
|---|
| 0 |
SELECT COUNT(*) AS MY_ROLES_LEFT
FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));| MY_ROLES_LEFT |
|---|
| 0 |
Nothing of ours left behind, and the built-in tags are exactly as we found them. They were read on this page and never written to.
SELECT CURRENT_ROLE() AS THE_ROLE, CURRENT_SECONDARY_ROLES() AS THE_SECONDARY_ROLES;| THE_ROLE | THE_SECONDARY_ROLES |
|---|---|
| ACCOUNTADMIN | {"roles":"ORGADMIN","value":"ALL"} |
Key points
- A tag is a named object. You put it on something with
ALTER ... SET TAGand take it off withUNSET TAG. - Twelve tags already exist on an account where nothing has been created, all of them in the
SNOWFLAKEdatabase,SENSITIVITYamong them. Look before you create one. - A tag either takes any value, or it has an
ALLOWED_VALUESlist. A value off the list is391826, and the previous value survives. - The list is checked when you write a value and never again. Remove a value that is in use and the object keeps it.
TAG_REFERENCESis where you look. On a column it returns the column's own tag and the table's, and theLEVELcolumn says which is which.- A table's own tag hides the schema's. Unset the table's and the schema's value appears in the same grid.
DESCRIBE TABLEsays nothing about tags at all.TAG_REFERENCESwantsTABLEfor a view too.VIEWis391806.DROP TAGon a tag that objects are using just works, and every reference goes with it. Both policy kinds refuse the same thing.- Duplicate allowed values are silently de-duplicated, and a role with only
USAGEandSELECTcan read every label on an object it can see.
In the next post we look at secure data sharing: CREATE SHARE, granting objects into one, and the one sharing statement that is deliberately not in the demo file.
Every query and every result grid on this page was captured from a live Snowflake account (version 10.36.101) running the demo script for this episode. USE SECONDARY ROLES NONE was set and proved off before anything was created and again inside the role excursion. The twelve built-in tags are read and never written, and SHOW TAGS IN ACCOUNT closes on the same rows it opened on. Every customer is invented. The grant that names a user is written here with a stand-in name. Everything created here was dropped here. Nothing is timed and no performance claims are made anywhere in this series. Behaviour follows the Snowflake CREATE TAG documentation.



No comments:
Post a Comment
Note: Only a member of this blog may post a comment.