sabari
sabari

Reputation: 2625

Could add file to internal stage in snowflake

The below is my code

put file://C:\Users\Smart\AppData\Local\Temp\Weather\demo.txt @SAB_INTERNAL_STAGE_2 auto_compress=false;

I couldnot add my file to the internal stage . I use the code in the worksheet of web UI.

Please suggest a workaround.

Thanks

Upvotes: 0

Views: 701

Answers (2)

sprethepa
sprethepa

Reputation: 797

From the documentation, "The command cannot be executed from the Worksheets Worksheet tab page in either Snowflake web interface; instead, use the SnowSQL client to upload data files, or check the documentation for a specific Snowflake client to verify support for this command"

https://docs.snowflake.com/en/sql-reference/sql/put.html#usage-notes

Upvotes: 1

Gokhan Atil
Gokhan Atil

Reputation: 10189

Please use SnowSQL to upload the file:

https://docs.snowflake.com/en/user-guide/snowsql.html

Or you can use the classic web interface to load data:

https://docs.snowflake.com/en/user-guide/data-load-web-ui.html

Upvotes: 1

Related Questions