I'm not sure what the question is, but you can do everything at runtime. You can declare variables through DeclareVariable.
There should not be any reason to reparse the SQL. If the SQL.Text changes, it will be reparsed automaically.
If this does not answer your question, let me know.
------------------
Marco Kalter
Allround Automations