I am trying to setup a workflow so a user only needs to enter the database name in a Text Input, and this will then dynamically update the database in a SQL connection.
My Input Data Source Template parameter is connected to a database and has a query setup in it. I now just want the Dynamic Input tool to update the database parameter in the connection so I can run this query on any database the user wants.
However, I can't seem to find a way to do it. I don't want to use Modify SQL Query because the query doesn't need to change, it's the connection properties. If I use a formula tool to create a connection string and then replace the entire connection path, I get "No table chosen" as if it's replacing my query. I've tried to create the connection and query in one big string but this just returns "Unknown error". What can I do here?
(I know I could use an App or Macro for this but trying to avoid it for a specific reason)