title: Using ConnectionString instead of TAdoConnection on a TAdoQuery
body: <p>I have derived my own component from TAdoQuery in Delphi.  I have overridden the <strong>DoAfterPost</strong> procedure; and in this code I create another query for the purpose of fetching the primary key associated with an inserted record (i.e. <strong>SELECT @@IDENTITY</strong> for SqlServer, <strong>SELECT LAST_INSERT_ID()</strong> for MySql, etc).</p>
  
  <p>In the past I always used <strong>TAdoConnection</strong> for database connectivity.  And in the "subquery" call made within DoAfterPost there was no problem because it was the SAME <strong>Session</strong> (these queries to retrieve last inserted primary keys assume a persistent database connection).</p>
  
  <p>I recently made an option where instead of using a <strong>TAdoConnection</strong> connection, I am instead setting the <strong>ConnectionString</strong> property (for multi-thrading purposes).  But this creates a problem because the spawned  <em>subquery</em> does not use the same session as the main query.  Hence it does not return the primary key value.</p>
  
  <p>My question is, does TAdoQuery have any <strong>Connection</strong> property if the <strong>ConnectionString</strong> is used?  I could then <em>daisychain</em> this connection/session to my subquery.  Or is the only way to accomplish this via a TAdoConnection?</p>