How to Create Schema Drift Alerts (Script Builder)

Build a script to create schema drift email alerts for all connected data sources in DataPancake.

1. Navigate to the "Alert" script builder

2. (Optional) Change the app database name

The default is DATAPANCAKE

3. Enter the role used to install DataPancake

4. Enter the name of the Snowflake database used to store the alert

If the name is case sensitive, put the name in double quotes such as "EXAMPLE_NAME"

5. Enter the name of the schema used to store the alert

If the name is case sensitive, put the name in double quotes such as "EXAMPLE_NAME"

6. Enter the name of the Warehouse used to store the alert

7. Select the Interval Type

Choose the interval type for data to be analyzed and determine if an alert should be sent.

8. Enter the Interval Quantity

Choose the interval quantity for data to be analyzed and determine if an alert should be sent.

9. Enter the comma separated email addresses that should receive the alerts

The email addresses must be verified by Snowflake to receive emails. Email verification can be initiated through the user's "My Profile" settings in Snowflake. Click 'Resend verification email' if needed.

10. (Option 1) Click "Generate Alert Script (Free)"

The free version will send an email notification informing of a schema change to one or more data sources including the name of the data source only.

11. (Option 2) Click "Generate Alert Script (Paid)"

The paid version will send an email notification informing of a schema change to one or more data sources including the details of the schema changes.

12. Copy the script

13. Open a new Snowflake worksheet and paste the script

14. Review & Execute the script

Use the blue dropdown arrow at the top right and click "Run All"

15. Ensure successful execution by examining the call result

16. Alert Management

SQL statements have been provided to:

  • Manually execute the alert

  • Start and stop the alert scheduling.

  • View alert execution history

Last updated