Object reference · Lesson 6 of 8Detailed study · about 12 min

Alerts and integrations

An alert checks a condition and performs an action when appropriate. An integration is an account-level configuration that connects Snowflake to an external service for a specific purpose.

Understand the idea

An alert is a small rule: when a condition is met, perform an action. For example, look for failed loads and call a supported notification mechanism. Merely creating a definition does not prove that the condition, schedule, privileges and action all work.

Key ideas in simple English
ConceptWhat it means
AlertCondition plus action, executed according to its configuration.
Storage integrationConfigured access to supported external cloud storage.
Notification integrationConfiguration for supported notification destinations or messaging.
External access integrationApproved network access for supported code execution.

A concrete example

Northstar wants to detect a failed load and send a notification. The alert decides when to act; the notification integration configures the allowed destination.

Remember: An integration supplies a particular connection boundary; it is not a universal credential.

Explain it step by step · full theory

Understand the idea

An alert is a small rule: when a condition is met, perform an action. For example, look for failed loads and call a supported notification mechanism. Merely creating a definition does not prove that the condition, schedule, privileges and action all work.

Integrations are account-level objects rather than children of your SALES schema. Each integration type has a defined purpose. A storage integration cannot simply be reused as a notification integration. Cloud-side permissions and Snowflake-side privileges must both be correct.

Follow the example

The example only lists visible alerts and integrations. It sends nothing and creates no connections. SHOW results depend on role privileges, so an empty list does not prove the account has no integrations at all.

For a future alert deployment, first demonstrate the condition with sample data, then confirm the intended destination and action permissions. Avoid putting secrets inside lesson SQL or assuming that an administrator setup can be performed by every learner.

Your result depends on the objects visible to the active role. No email is sent and no external service is contacted by this inventory example.

Words used in this lesson
Alert
Condition plus action, executed according to its configuration.
Storage integration
Configured access to supported external cloud storage.
Notification integration
Configuration for supported notification destinations or messaging.
External access integration
Approved network access for supported code execution.

See how it works

Choose a step to explore the idea at your own pace.

Open the interactive explanation
Interactive explainer1 / 3

Alerts and integrations

Northstar sales team
Business requirement

Start with the requirement

Northstar wants to detect a failed load and send a notification. The alert decides when to act; the notification integration configures the allowed destination.

Automatic playback is off for reduced motion. Select any step or use Previous and Next. Illustrations explain behavior; they are not live measurements.

Read the complete diagram explanation
  1. Start with the requirement

    Northstar wants to detect a failed load and send a notification. The alert decides when to act; the notification integration configures the allowed destination.

  2. Choose the objects

    Compare the responsibilities: Alert: Condition plus action, executed according to its configuration.; Storage integration: Configured access to supported external cloud storage.; Notification integration: Configuration for supported notification destinations or messaging.

  3. Explain the outcome

    An integration supplies a particular connection boundary; it is not a universal credential.

Try the SQL or command

Read → predict → run in your learning environment → compare. You can also learn by reading without an account.

New to SQL? Where to run it and how to read it

A query is a question written in SQL. Snowflake runs it and returns a result table. This website shows examples; it does not connect to your account.

  1. No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
  2. For SQL practice, use a learning account in Snowsight and select an authorized role and warehouse. A role determines permissions; a warehouse supplies processing power. Follow the example’s database/schema setup when it refers to stored objects.
  3. Read the entire example, including comments beginning with --. Run the selected statement or labeled block in the stated order. Examples labeled Python, shell or HTTP belong in that client, not in a SQL editor.
  4. Compare values and row counts with the explained result. If an example deliberately causes an error, follow its rollback and cleanup steps before continuing.
SELECT / FROM
Choose the values to return / identify their input.
VALUES / COLUMN1
VALUES supplies tiny example rows. COLUMN1 means their first column, COLUMN2 their second.
AS / WITH
AS gives a result a readable name. WITH names a temporary query step within one statement.
NULL / ::
NULL means missing or unknown. The :: notation converts a value to a named data type.
Session
One connection and its settings. Keep related transaction steps in the same session.
Database.schema.table
A full address for stored data. It is separate from the warehouse that processes queries.
Help with common practice errors
  • No active warehouse: select a warehouse your role can use. Do not assume you need to create a new one.
  • Object missing or not authorized: check the full name, required setup and active role. Ask the account owner for access if needed.
  • Object already exists: setup may already have run. Read the current state or choose a fresh lab name consistently; do not add OR REPLACE blindly.
  • Different result: check whether an earlier INSERT or UPDATE changed the data. VALUES examples provide their own fresh input for each statement.

Before running this lesson

Examples are for reading first. Optional execution requires an authorized learning account, a selected warehouse for queries, and privileges on the named objects. Nothing runs on this website.

Read the example

SQL · example
SHOW ALERTS IN SCHEMA L2_OBJECTS_LAB.SALES;
SHOW INTEGRATIONS;

What to expect and why

Your result depends on the objects visible to the active role. No email is sent and no external service is contacted by this inventory example.

Check your understanding

Choose an answer, then check your reasoning. This is practice, not a scored test.

Can a storage integration automatically serve as a notification integration?

Try it yourself

A failed-load alert has a correct condition but cannot send a message. Which boundaries would you inspect?

Compare your reasoning

Inspect the alert action and execution privileges, the notification integration configuration, and the authorized destination. Correct detection alone does not establish permission to send a message.

Official sources and curriculum

Object reference · See module scope