Hi Jonathan,
I recently ran into this as well working with OLEDB. One method would be to use multiple data items for sections and then concatenate in a final data item, i.e. [sql pt1] & [sql pt2]. I created variables for the base sql, where clause, and fields I would select and then concatenated together for complete sql statement. Another method would be to store the query in an external text file, load that file when needed and pass to object. You could do this with the pre-built Utility-File Management VBO or you could use a code stage, example here:
http://portal.blueprism.com/customer-support/support-center#/path/1158159412
Thanks,
Ed------------------------------
Ed Garabedian
Sr. Solutions Consultant
Blue Prism
------------------------------