Please help us on how to create .SQL file & also how to run sql queries present inside the .SQL file one by one.
I have created below flow for to run .SQL file,
{1. Read SQL File:
Use the “Read Text File” activity to read the content of the SQL file into a string variable.
2.Split Queries:
Split the content of the file into individual queries.
It will be best if you create the stored procedure which includes all the queries. You can put all the queries directly into the stored procedure as strings and execute them within the procedure itself.
You can run this procedure using execute query or run query by selecting command type as stored procedure.