USE WAREHOUSE



Binds the current session to a specific warehouse. Subsequent queries in the session will use this warehouse for execution.

Syntax

USE WAREHOUSE <warehouse_name>
ParameterDescription
warehouse_nameThe name of the warehouse to use. The command validates that the warehouse exists and is accessible.

Examples

Set a warehouse as active for the current session:

USE WAREHOUSE 'my-warehouse';

Was this page helpful?