# how to change default naming of models (tables/view) dynamically at run time

**URL:** <https://discourse.getdbt.com/t/how-to-change-default-naming-of-models-tables-view-dynamically-at-run-time/12313>\
**Category:** Help\
**Tags:** snowflake, dbt-core\
**Created:** [March 5, 2024, 6:12am UTC](https://discourse.getdbt.com/t/how-to-change-default-naming-of-models-tables-view-dynamically-at-run-time/12313 "2024-03-05T06:12:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pratham](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/pratham/32/3726_2.png) [@Pratham](https://discourse.getdbt.com/u/Pratham)\
**Post date:** [March 5, 2024, 6:12am UTC](https://discourse.getdbt.com/t/how-to-change-default-naming-of-models-tables-view-dynamically-at-run-time/12313/1 "2024-03-05T06:12:11Z")

</div>

I have created a model that will create views by passing the var Table\_name. As I am using snowflake so getting column details from information\_schema.columns tables and creating views for that table dynamically at run time. The idea is to automate the process of creating views for tables.

Now I want the name of newly created view to be ‘Tablename\_V’ instead of .sql file name and Tablename can change at run time based on given parameter wile running the model.  
e.g  
dbt run -m Dynamic\_views --vars ‘table\_name : Customer’

I have already tried using {{ config( alias = “\_V”, ) }}, but its also kind of hard coded value only, i want something that will change at run time.

Can someone help me with this…
