Thanks in advance. I am very new to Python & Python snowflake connector and need help to understand how it can be done.
Scenario: I have list of SQLS that i have put in a text file. Ex.. 5 SQL queries. I want to execute one by one in the Snowflake and store result of each SQL in a different Outputfile.
Please let me know your ideas and thoughts.
Thanks in advance.
You can try using CLI SnowSQL for this.
This is your SQL file my_example.sql you need to run
Configure SnowSQL to connect to your account. You can refer this to do it.
The spool file my_example.log is the CSV output of your SQL file my_example.sql