COF-C02 · Question #77
Which command sets the Virtual Warehouse for a session?
The correct answer is C. USE WAREHOUSE <<warehouse name>>. In Snowflake, the correct SQL command to set or switch the active virtual warehouse for the current session is USE WAREHOUSE <warehouse_name>;. This is standard Snowflake syntax. Option B (SET WAREHOUSE) is not valid Snowflake SQL syntax. Option D (USE VIRTUAL_WAREHOUSE) is…
Question
Which command sets the Virtual Warehouse for a session?
Options
- ACOPY WAREHOUSE FROM <<config file>>;
- BSET WAREHOUSE = <<warehouse name>>;
- CUSE WAREHOUSE <<warehouse name>>;
- DUSE VIRTUAL_WAREHOUSE <<warehouse name>>;
How the community answered
(38 responses)- A5% (2)
- C92% (35)
- D3% (1)
Explanation
In Snowflake, the correct SQL command to set or switch the active virtual warehouse for the current session is USE WAREHOUSE <warehouse_name>;. This is standard Snowflake syntax. Option B (SET WAREHOUSE) is not valid Snowflake SQL syntax. Option D (USE VIRTUAL_WAREHOUSE) is incorrect because the keyword is simply WAREHOUSE, not VIRTUAL_WAREHOUSE. Option A is entirely fabricated syntax and does not exist in Snowflake.
Topics
Community Discussion
No community discussion yet for this question.