# Triggered By Node

Source: https://help.codestencil.com/code-generation/triggered-by-node

We want to be able to achieve generated code that looks like what is shown below:

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

To trigger by node, do the following:

1. Create 2 nodes containing the code as above. You can name them with the database names in braces for identification. Anything text surrounded by braces "{}" will be ignored during code generation. See [Bracers](https://help.codestencil.com/code-tree/bracers). ![](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/mceclip0_1692768382.png)
2. Edit the node and select the database provider under the dependency section.![](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/mceclip1_1692768854.png)
3. Change the code of the node to match the specific database provider.![](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/mceclip2_1692769849.png)
 

Repeat this for the other Database provider(s).
