'Including scripts in QueryBank / Saved Export queries?

Can I incorporate scripts setting variables and while loops, etc. in the "QB Query" of the Query Bank?

I have a SQL Server script that works perfectly in my local dev DB but it doesnt play nice with Volusion.

I don't know if I should spend more time figuring it out or just stop because it isn't even possible.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source