People often ask us: – Do you have a query book? I want to store them and to be able to call any of them when I want.
They include a mechanism for variables, so your template can be more generic than the query you are going to run.
This is how you run the query when you need it: The file can only be attached to one session, so if you need to switch sessions or data sources, please do so manually.
There is no need to switch sessions or data sources every time you run the query: it is set for the file, which is to say, for the query.