title: Delphi: How to get the query that is passed to the server when parameters are used
body: <p>I have a query with parameters inside a Devart TMSQuery.SQL. Something like</p>
  
  <pre><code>select * from customers
  where customer = :CustomerID
  </code></pre>
  
  <p>in code I do</p>
  
  <pre><code>// Delphi
  sqlcustomer.ParamByName('CustomerID').asinteger := 4;
  sqlcustomer.open;
  </code></pre>
  
  <p>I want to debug and see the exact sql command sent to the server, if I try to use TMSQuery.sql I just have the :CustomerID, while I would like to have this:</p>
  
  <pre><code>select * from customers
  where customer = 4
  </code></pre>
  
  <p>is there a quick way to have this without reading all the parameters and reconstructing manyally the query?</p>
  
  <p>Of course I have a very big query with more than 100 parameters, this is why I need this</p>