# Passing local/sql variables to snowflake using models created in dbt

**URL:** <https://discourse.getdbt.com/t/passing-local-sql-variables-to-snowflake-using-models-created-in-dbt/3383>\
**Category:** Archive\
**Created:** [November 17, 2021, 7:36pm UTC](https://discourse.getdbt.com/t/passing-local-sql-variables-to-snowflake-using-models-created-in-dbt/3383 "2021-11-17T19:36:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kreator.1020](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kreator.1020](https://discourse.getdbt.com/u/kreator.1020)\
**Post date:** [November 17, 2021, 7:36pm UTC](https://discourse.getdbt.com/t/passing-local-sql-variables-to-snowflake-using-models-created-in-dbt/3383/1 "2021-11-17T19:36:00Z")

</div>

In snowflake there is a possibility to define local variables and use in queries and views which help add dynamism based on certain conditions. Is it possible to add them to dbt build model so that the same functionality can be used instead of building such models directly?
