How to call many times the same Snowflake stored procedure in only one script ?

Hi guys,

I created a stored procedure in Snowflake and a script that call this stored procedure four times. I already tested it in Snowflake and it works; however, when I try with Flyway, it shows me an error:

'' Stored procedure execution error: Scoped transaction started in stored procedure is incomplete and it was rolled back. "

So how to fix it ? Thanks in advance
Tagged:

Best Answer

Answers

  • RSchammassRSchammass Posts: 2 New member
    Thanks guys. I solved the issue. Have a good one.
  • shalena62shalena62 Posts: 1 New member
    To execute multiple calls to the same Snowflake stored procedure within a single script, utilize loops or iterative constructs available in your scripting language. This approach optimizes efficiency and streamlines code, ensuring seamless execution of the procedure across various datasets or scenarios without redundancy.
Sign In or Register to comment.