# Preview the fully scoped name of the model

**URL:** <https://discourse.getdbt.com/t/preview-the-fully-scoped-name-of-the-model/11722>\
**Category:** Help\
**Created:** [January 24, 2024, 11:58am UTC](https://discourse.getdbt.com/t/preview-the-fully-scoped-name-of-the-model/11722 "2024-01-24T11:58:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![moseleyi](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@moseleyi](https://discourse.getdbt.com/u/moseleyi)\
**Post date:** [January 24, 2024, 11:58am UTC](https://discourse.getdbt.com/t/preview-the-fully-scoped-name-of-the-model/11722/1 "2024-01-24T11:58:06Z")

</div>

I use `generate_schema_name` and `generate_database_name` pretty much every time I work with dbt and need to tweak it. What is the best way to check fully-scoped name of the model without actually running it? I don’t want to run it as, if there are mistakes, it just produces tables/views in the wrong place.

---

<div class="post-metadata">

**Author:** ![Teun](https://avatars.discourse-cdn.com/v4/letter/t/5f8ce5/32.png) [@Teun](https://discourse.getdbt.com/u/Teun)\
**Post date:** [January 24, 2024, 12:29pm UTC](https://discourse.getdbt.com/t/preview-the-fully-scoped-name-of-the-model/11722/2 "2024-01-24T12:29:21Z")

</div>

You can run **[dbt compile](https://docs.getdbt.com/reference/commands/compile)**. This while generate the excutable sql code in your target folder without executing it.

---

<div class="post-metadata">

**Author:** ![moseleyi](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@moseleyi](https://discourse.getdbt.com/u/moseleyi)\
**Post date:** [January 24, 2024, 12:34pm UTC](https://discourse.getdbt.com/t/preview-the-fully-scoped-name-of-the-model/11722/3 "2024-01-24T12:34:11Z")

</div>

The SQL yes but what about the full name of the model that includes project and dataset?

It will only say “Compiled node \<name\_of\_model\>”

but I would like “project-123.dataset-1.\<name\_of\_model\>”

---

<div class="post-metadata">

**Author:** ![a\_slack\_user](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/a_slack_user/32/1629_2.png) [@a\_slack\_user](https://discourse.getdbt.com/u/a_slack_user)\
**Post date:** [January 24, 2024, 12:40pm UTC](https://discourse.getdbt.com/t/preview-the-fully-scoped-name-of-the-model/11722/4 "2024-01-24T12:40:18Z")

</div>

If you dbt compile and then look at the manifest.json, it will have the information about dbt’s naming of the model.

Note: `@Mike Stanley` originally [posted this reply in Slack](https://getdbt.slack.com/archives/CBSQTAPLG/p1706099710827139?thread_ts=1706097520.021939&cid=CBSQTAPLG). It might not have transferred perfectly.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/1X/a7a7ca1fe379aaf90952b0e13118a817babcd14f.png) [@system](https://discourse.getdbt.com/u/system)\
**Post date:** [January 31, 2024, 12:40pm UTC](https://discourse.getdbt.com/t/preview-the-fully-scoped-name-of-the-model/11722/5 "2024-01-31T12:40:47Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
