A Data Scientist as data providers require to allow consumers to access all databases and database objects in a share by granting a single privilege on shared databases. Which one is incorrect SnowSQL command used by her while doing this task?
Assuming:
A database named product_db exists with a schema named product_agg and a table named Item_agg.
The database, schema, and table will be shared with two accounts named xy12345 and yz23456.
1. USE ROLE accountadmin;
2. CREATE DIRECT SHARE product_s;
3. GRANT USAGE ON DATABASE product_db TO SHARE product_s;
4. GRANT USAGE ON SCHEMA product_db. product_agg TO SHARE product_s;
5. GRANT SELECT ON TABLE sales_db. product_agg.Item_agg TO SHARE product_s;
6. SHOW GRANTS TO SHARE product_s;
7. ALTER SHARE product_s ADD ACCOUNTS=xy12345, yz23456;
8. SHOW GRANTS OF SHARE product_s;
CREATE SHARE product_s is the correct Snowsql command to create Share object.
Rest are correct ones.
https://docs.snowflake.com/en/user-guide/data-sharing-provider#creating-a-share-using-sql
Natalie
2 months agoCheryl
2 months agoChara
2 months agoNaomi
3 months agoSharee
3 months agoEttie
3 months agoDeeann
3 months agoSabina
4 months agoRory
4 months agoMayra
4 months agoWhitley
4 months agoJoanna
4 months agoAhmed
5 months agoXenia
5 months agoJanessa
7 months agoYuriko
7 months agoYvonne
7 months agoAnabel
7 months agoBernardo
7 months agoJanessa
7 months agoYuriko
7 months agoJanessa
7 months agoRyan
8 months agoVeta
7 months agoRashad
7 months agoNathalie
7 months agoElouise
8 months agoPhung
7 months agoMy
8 months agoAmie
8 months ago