The idea is that we use an external (non .NET) application to generate the reports and we have and XML with something like:
<QuerySQL>
<Name>Customer_query</Name>
<SQL> SELECT id, code, name FROM Customer WHERE id=231</SQL>
</QuerySQL>
<QuerySQL>
<Name>Sells_query</Name>
<SQL> [SQL query retrieving the sells of the customer] </SQL>
</QuerySQL>
After writting the queries in the XML we run the report application. So I just need the SQL code of some queries to write it down into the XML.
I hope I've explained myself better.
Thank you,
Josep.