Introduction
Sometimes you want to run a set of instructions inside your database to automate tasks. Stored procedures let you do this. Using Python for stored procedures in Snowflake helps you write these instructions in a simple, familiar language.
When you want to automate data transformations inside Snowflake without moving data out.
When you need to run multiple SQL commands together with logic like loops or conditions.
When you want to reuse a set of database operations easily by calling a single procedure.
When you want to keep your business logic close to your data for faster execution.
When you want to use Python's capabilities to process data inside Snowflake.