|
3 | 3 | <iframe |
4 | 4 | width="560" |
5 | 5 | height="315" |
6 | | - src="https://www.youtube.com/embed/6HNmxQWqmgg" |
| 6 | + src="https://www.youtube.com/embed/LgCjLyClg3o" |
7 | 7 | title="YouTube video player" |
8 | 8 | frameborder="0" |
9 | 9 | allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
|
27 | 27 | <iframe |
28 | 28 | width="560" |
29 | 29 | height="315" |
30 | | - src="https://www.youtube.com/embed/5hPrJNEa4aA?start=64&end=267" |
| 30 | + src="https://www.youtube.com/embed/sFLPGVe4VBM" |
31 | 31 | title="YouTube video player" |
32 | 32 | frameborder="0" |
33 | 33 | allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
|
47 | 47 | SHOW USERS LIKE '<my-user>'; |
48 | 48 | ``` |
49 | 49 |
|
50 | | -- The Snowflake warehouse's [hostname and its port number](https://docs.snowflake.com/sql-reference/functions/system_allowlist) in the account. |
| 50 | +- The name of the Snowflake [role](https://docs.snowflake.com/sql-reference/sql/create-role) that the user belongs to and that also has sufficient access to the Snowflake database, schema, table, and host. |
| 51 | + |
| 52 | + <iframe |
| 53 | + width="560" |
| 54 | + height="315" |
| 55 | + src="https://www.youtube.com/embed/cxe2Ed_-qkM" |
| 56 | + title="YouTube video player" |
| 57 | + frameborder="0" |
| 58 | + allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 59 | + allowfullscreen |
| 60 | + ></iframe> |
| 61 | + |
| 62 | + - To create a database in Snowflake, the role needs to be granted `CREATE DATABASE` privilege at the current account level; and `USAGE` privilege on the warehouse that is used to create the database. |
| 63 | + - To create a schema in a database in Snowflake, the role needs to be granted `USAGE` privilege on the database and the warehouse that is used to create the schema; and `CREATE SCHEMA` on the database. |
| 64 | + - To create a table in a schema in Snowflake, the role needs to be granted `USAGE` privilege on the database and schema and the warehouse that is used to create the table; and `CREATE TABLE` on the schema. |
| 65 | + - To write to a table in Snowflake, the role needs to be granted `USAGE` privilege on the database and schema and the warehouse that is used to write to the table; and `INSERT` on the table. |
| 66 | + - To read from a table in Snowflake, the role needs to be granted `USAGE` privilege on the database and schema and the warehouse that is used to write to the table; and `SELECT` on the table. |
| 67 | + |
| 68 | + To view a list of available roles in the current Snowflake account: |
| 69 | + |
| 70 | + 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. |
| 71 | + 2. In Snowsight, on the navigation menu, click **Admin > Users & Roles**. |
| 72 | + 3. Click the **Roles** tab. |
| 73 | + |
| 74 | + Alternatively, the following Snowflake query returns a list of available roles in the current account: |
| 75 | + |
| 76 | + ```text |
| 77 | + SHOW ROLES; |
| 78 | + ``` |
| 79 | + |
| 80 | + [Grant privileges to a role](https://docs.snowflake.com/sql-reference/sql/grant-privilege). [Learn more](https://docs.snowflake.com/user-guide/security-access-control-privileges). |
| 81 | + |
| 82 | +- The Snowflake warehouse's [hostname and its port number](https://docs.snowflake.com/sql-reference/functions/system_allowlist) in the account. |
| 83 | + |
| 84 | + <iframe |
| 85 | + width="560" |
| 86 | + height="315" |
| 87 | + src="https://www.youtube.com/embed/ItLW0N1uEOI" |
| 88 | + title="YouTube video player" |
| 89 | + frameborder="0" |
| 90 | + allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 91 | + allowfullscreen |
| 92 | + ></iframe> |
51 | 93 |
|
52 | 94 | To view a list of available warehouses in the current Snowflake account: |
53 | 95 |
|
|
68 | 110 | <iframe |
69 | 111 | width="560" |
70 | 112 | height="315" |
71 | | - src="https://www.youtube.com/embed/KrXCgpsRd0A" |
| 113 | + src="https://www.youtube.com/embed/f49tin_Pehs" |
72 | 114 | title="YouTube video player" |
73 | 115 | frameborder="0" |
74 | 116 | allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
|
88 | 130 |
|
89 | 131 | - The name of the [schema](https://docs.snowflake.com/sql-reference/sql/create-schema) in the database. |
90 | 132 |
|
91 | | - <iframe |
92 | | - width="560" |
93 | | - height="315" |
94 | | - src="https://www.youtube.com/embed/4SoS_c6rT_U?start=97&end=157" |
95 | | - title="YouTube video player" |
96 | | - frameborder="0" |
97 | | - allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
98 | | - allowfullscreen |
99 | | - ></iframe> |
100 | | - |
101 | 133 | To view a list of available schemas for a database in the current Snowflake account: |
102 | 134 |
|
103 | 135 | 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. |
|
118 | 150 |
|
119 | 151 | - The name of the [table](https://docs.snowflake.com/sql-reference/sql/create-table) in the schema. |
120 | 152 |
|
121 | | - <iframe |
122 | | - width="560" |
123 | | - height="315" |
124 | | - src="https://www.youtube.com/embed/ZaZzqFMGe1g?end=169" |
125 | | - title="YouTube video player" |
126 | | - frameborder="0" |
127 | | - allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
128 | | - allowfullscreen |
129 | | - ></iframe> |
130 | | - |
131 | 153 | To view a list of available tables for a schema in a database in the current Snowflake account: |
132 | 154 |
|
133 | 155 | 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. |
|
192 | 214 | ); |
193 | 215 | ``` |
194 | 216 |
|
195 | | -- The name of the column in the table that uniquely identifies each record (for example, `RECORD_ID`). |
196 | | -- The name of the Snowflake [role](https://docs.snowflake.com/sql-reference/sql/create-role) that the user belongs to and that also has sufficient access to the Snowflake database, schema, table, and host. |
197 | | - |
198 | | - - To create a database in Snowflake, the role needs to be granted `CREATE DATABASE` privilege at the current account level; and `USAGE` privilege on the warehouse that is used to create the database. |
199 | | - - To create a schema in a database in Snowflake, the role needs to be granted `USAGE` privilege on the database and the warehouse that is used to create the schema; and `CREATE SCHEMA` on the database. |
200 | | - - To create a table in a schema in Snowflake, the role needs to be granted `USAGE` privilege on the database and schema and the warehouse that is used to create the table; and `CREATE TABLE` on the schema. |
201 | | - - To write to a table in Snowflake, the role needs to be granted `USAGE` privilege on the database and schema and the warehouse that is used to write to the table; and `INSERT` on the table. |
202 | | - - To read from a table in Snowflake, the role needs to be granted `USAGE` privilege on the database and schema and the warehouse that is used to write to the table; and `SELECT` on the table. |
203 | | - |
204 | | - To view a list of available roles in the current Snowflake account: |
205 | | - |
206 | | - 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. |
207 | | - 2. In Snowsight, on the navigation menu, click **Admin > Users & Roles**. |
208 | | - 3. Click the **Roles** tab. |
209 | | - |
210 | | - Alternatively, the following Snowflake query returns a list of available roles in the current account: |
211 | | - |
212 | | - ```text |
213 | | - SHOW ROLES; |
214 | | - ``` |
215 | | - |
216 | | - [Grant privileges to a role](https://docs.snowflake.com/sql-reference/sql/grant-privilege). [Learn more](https://docs.snowflake.com/user-guide/security-access-control-privileges). |
| 217 | +- The name of the column in the table that uniquely identifies each record (for example, `RECORD_ID`). |
0 commit comments