79693091

Date: 2025-07-07 15:36:53
Score: 2
Natty:
Report link

Set AUTOCOMMIT to TRUE on account level in Snowflake.

Reposting @sriga's comment, which answered the question:

If you are changing the account parameter inside the stored procedure, it won't allow. Instead you can change the account level parameter by running Alter session set autocommit=True; else you can run your python script outside the snowflake and change the session parameters as mentioned in the below code

Snowflake enforces the prohibition on setting AUTOCOMMIT inside a stored procedure. Note that changing the AUTOCOMMIT behavior outside a stored procedure will continue to work.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @sriga's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Albert