title: 'Open' or 'ExecSQL' detect query difference before executing
body: <p>There are some queries that need to use the 'Open' command and some the 'ExecSQL'.</p>
  
  <p>I am using the memo for my queries (first time) </p>
  
  <pre><code>Query1.SQL.Text := ADVMemo1.Lines.Text;
  </code></pre>
  
  <p>and cant figure out how to handle the mentioned difference
  on button click.</p>
  
  <p>Is there a way to check this when button is pressed so it knows what to apply?
  Like... if query begins with insert or update then exec else ...</p>