title: Getting EDBEngineError - Operation Not Applicable in Delphi XE2 on ExecSQL Statement
body: <p>I am using TQuery to insert record into table. Below is the code for that.</p>
  
  <pre><code>with qryABC do
      begin
        Close;
        SQL.Clear;
        SQL.Text := 'INSERT INTO tableXYZ (ID) values (:ID)';
        ParamByName('ID').Value := AnyID;
        ExecSQL;
        Close;
      end;
  </code></pre>
  
  <p>When I fire same query from oracle, query gets fired, but giving exception when I try to fire the query from delphi xe2. While debugging, I found out that I get error on "ExecSQL" statement in above code. Exception is:  EDBEngineError - Operation Not Applicable</p>
  
  <p>I googled it but with no fruit. Please help.</p>