Can one application switch between SQL back ends at run time (ODBC, ADO, connection strings)? (Reported, not reproduced)

Applies to: as reported, Clarion applications with the SQL drivers; no Clarion or server version is named.

Problem as reported

A poster asked whether the database driver can be changed on the fly so one application uses different SQL back ends, through different connection strings, ODBC or ADO. He expected it to be impossible from TopSpeed to SQL.

What the thread found

  • Several posters answered yes, with a condition: the code behind it must follow. One called it a "VERY cautious yes".
  • The differences named: the way the auto-increment value is obtained (MS SQL uses an identity, Firebird, Ingres and PostgreSQL use a sequence) and differing data types.
  • What worked for the posters: ODBC and ADO with plain SQL statements or conditional code per back end; one poster switched between a local and a distant MySQL or MS SQL server by changing the owner string defined in the dictionary.
  • One poster said a TopSpeed to SQL switch is possible with a dynamic file driver and PROP:DRIVER. Another replied that PROP:DRIVER is read-only and PROP:FileDriver, which needs the Dynamic File Driver installed, does the change. A third remembered both working with the Dynamic File Driver installed, PROP:FileDriver being the one for a local compile.

Caveats

  • The PROP:DRIVER versus PROP:FileDriver point was not settled.
  • No poster measured anything; these are experiences.
  • The thread does not say which dialect differences beyond auto-increment and data types appeared.

Today (2026)

Not reproduced. This entry records a 2008 discussion. Whether the property names and the Dynamic File Driver behave the same on a current build was not re-tested; a reader who has done it is asked to confirm or close the entry.

Sources: Ben B. (Mar 2008, the question), Sean H., David B., Jean-Pierre G., Bjarne H., Marius L., Shankar (Mar 2008) in softvelocity.clarion.databasedrivers.