Professional Documents
Culture Documents
Lab5 SnowSQL InternalStages
Lab5 SnowSQL InternalStages
https://docs.snowflake.com/en/user-guide/snowsql-install-config.html#installing-
snowsql-on-microsoft-windows-using-the-installer
(or)
//Dcoumentation
https://docs.snowflake.com/en/user-guide/snowsql-install-config.html#installing-
snowsql-on-microsoft-windows-using-the-installer
=========================================
//Login to snowflake from Snowsql client
snowsql -a ed52115.us-east-2.aws
snowsql -a qwb81195.us-east-1
//Running queries
SELECT * FROM mydb.public.EMP;
// USER STAGE
//Put your files into user internal stage
//If your put command is failing with 403 forbidden error, practice this session
after AWS-Snowflake integration session(next video in the play list) then it will
work.
put file://C:\Users\janar\OneDrive\Documents\Files\customer_data_user.csv
@~/staged;
list @~/staged;
// TABLE STAGE
//Put your files into table internal stage
put file://C:\Users\janar\OneDrive\Documents\Files\customer_data_table.csv @
%customer_data_table;
put file://C:\Users\janar\OneDrive\Documents\Files\customer_data_table.csv @
%customer_data_table;
list @%customer_data_table;
//Named Stage
// Create a schema for internal stages
CREATE SCHEMA IF NOT EXISTS mydb.internal_stages
list @mydb.internal_stages.named_customer_stage;