title: Separate dbx connection to a thread
body: <p>I made a small app that connects to a mysql db using dbx. It works ok with my local mysql server, but it's supposed to work with a remote server.</p>
  
  <p>Connecting to the remote server takes a few seconds, which freezes the app.</p>
  
  <p>So my question is, how can I put the connection code in a different thread?</p>
  
  <p>I'll have to pass that connection to the main thread somehow, so that the dbgrid I have on the main form works.</p>
  
  <p>I read that db stuff working in a different thread should have their own connections. So I'm not sure how to do what I want.</p>
  
  <p>Any ideas? Anything to read about working with remote servers?</p>
  
  <p>Thanks.</p>
  
  <p>Edit: The components I'm using on the form are: TSQLConnection -> TSimpleDataSet > TDataSource > TDBGrid.</p>