# Linked Expander

Source: https://help.codestencil.com/expanders/linked-expander

Linked Expanders can allow you to manipulate your expansion string to be replaced by the expander record you are linked to.

For example, in this image:

![](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/mceclip0_1697054465.png)

The Expander - `<strong>DB_IN_USE_SQLSERVER</strong>` is linked to `<strong>DB_IN_USE</strong>`. Likewise, the expander `DB_IN_USE_SQLITE` is also linked to `DB_IN_USE`.

Now in our Stencil Code, the expander we use will be `DB_IN_USE`.

![](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/mceclip0_1697054988.png)

What then happens is that when code is generated, if the connected database is SQL Server, the expansion string that will be used will be `<strong>UseSqlServer</strong>`.

![](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/mceclip1_1697055304.png)
