Insert String type tag to SQL Server database

If you only need to run it when the boolean changes, a gateway tag change event (not a tag valueChange event) is the right place. Share more about what you are doing if not that.