Choose a client and verify its session
Choose among Snowsight, the CLI and an IDE, then verify the role and compute used by the session.
Choose a client and verify its session
Work through the decision
A query succeeds in a developer’s worksheet but the scheduled CLI run fails. Is the difference evidence that the CLI cannot query the object?
Check your reasoning
Compare the account, role, database, schema and warehouse used by both connections. Snowsight supplies interactive worksheets, object browsing and query history. Snowflake CLI suits repeatable terminal work. The Snowflake VS Code extension gives developers SQL and object exploration next to versioned source files.
Compare the choices
- Snowsight
- Use the browser to explore objects, run worksheets and inspect query history and profiles.
- Snowflake CLI
- Use scripted commands and named connections from a terminal or automation job.
- Snowflake extension for VS Code
- Inspect objects, execute SQL and see results from the editor that contains the project files.
- Session context functions
- Check the current account, role, warehouse, database or schema to reproduce a session precisely.
- Named connection configuration
- Store nonsecret connection settings under an explicit profile and supply credentials through an approved mechanism.
Test the decision
If CURRENT_ROLE() differs, test the intended role’s authorization. If only CURRENT_SCHEMA() differs, qualify the object name or correct the connection context. Using the same SQL text is insufficient to guarantee the same target.
Practice the guide skills
- Use a Snowsight worksheet and query history to inspect a completed run. Watch 9:09
- Identify the named Snowflake CLI connection a deployment script should select. Watch 10:36
- Run selected SQL in the Snowflake VS Code extension and inspect the active database and results. Watch 12:08
Official objectives for this lesson
Related lesson · Promote a reviewed Fabric change
Choose a client and verify its session quiz
Answer 3 questions. Check each answer for an explanation.