Sorry, I forgot to mention that I also tried the "dbFailOnError", but with the same results.
I checked the table after execution of the SQL statements, but nothing has been updated or inserted in the table.
When I run the procedure for the second time where "FirstGRV" evaluates to "N", the...