# How to refer objects from another database?

**URL:** <https://forum.liquibase.org/t/how-to-refer-objects-from-another-database/7017>\
**Category:** General Discussion\
**Created:** [June 27, 2022, 3:10pm UTC](https://forum.liquibase.org/t/how-to-refer-objects-from-another-database/7017 "2022-06-27T15:10:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EduardUta](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/eduarduta/32/324_2.png) [@EduardUta](https://forum.liquibase.org/u/EduardUta)\
**Post date:** [June 28, 2022, 9:06am UTC](https://forum.liquibase.org/t/how-to-refer-objects-from-another-database/7017/2 "2022-06-28T09:06:26Z")

</div>

Hi @sr.kancham  
While I am not sure what SSDT means and what is used for, with regard to how to use dynamically passed values to a changelog/changeset, here is something that could help:

> **[Substituting Properties in Changelogs](https://docs.liquibase.com/concepts/changelogs/property-substitution.html?Highlight=token)**
>
> Liquibase allows dynamic substitution of properties in your changelog. The tokens to replace in your changelog are described using the ${property-name} syntax.

Also, on the same topic, asked here:

> [@Passing Runtime Variables to SQL files](https://forum.liquibase.org/t/passing-runtime-variables-to-sql-files/4331):
>
> Hello All, We have recently started using Liquibase, I would like to know if it is possible to pass runtime variables to SQL scripts in Liquibase. For examples I have &schema\_name in my script, can I store this value in the properties file and call it out during the script execution.

So in few words, you would need to have the changelog/changeset contain the pattern ${databaseName} where needed, as a token (in your example, preceeding the dbo schema) and this token’s value can be set, as a parameter/value at runtime in the liquibase command: ` liquibase ... -DdatabaseName=<actual name>` …

Hope this helps,  
Eduard

---

_[View the full topic](https://forum.liquibase.org/t/how-to-refer-objects-from-another-database/7017)._
