title: TSQLConnection to a user chosen DSN at runtime
body: <p>I want to use dbExpress and a TSQLConnection object to allow the user of my application to connect to any of their ODBC dsn and run a SQL query against it.</p>
  
  <p>I have it so the user can select a DSN, (by DSN i mean all the configured data sources listed in control panel - administrative tools - Data Sources (ODBC)), but once they have selected one 
  I am not sure how to configure the TSQLConnection object.</p>
  
  <p>I think I need to set :</p>
  
  <p>SQLCon.connectionName</p>
  
  <p>SQLCon.driverName</p>
  
  <p>SQLCon.getDriverFunc</p>
  
  <p>In the registry settings for a given DSN I have a 'DRIVER' entry that points to a DLL but nothing to indicate the 'getDriverFunc' value.</p>
  
  <p>Does anyone have any advice or an example of setting up a TSQLConnection (or any other delphi db connection) to an ODBC DSN at runtime ?</p>
  
  <p>Thanks</p>