Firebird: is there a tool that turns a Clarion dictionary into a Firebird SQL script?

Applies to: Firebird in 2004; the Clarion version is not named. The template set discussed is dated 2004.03.05.

Problem

The poster wanted to create the Firebird database from a Clarion dictionary with an SQL script. A first try with a template gave "all kinds of errors" when the script ran in IBExpert's SQL editor.

Solution

  1. Use the DCT 2 SQL templates by Roberto A., which write scripts for several SQL engines, Firebird among them. Get the 2004.03.05 set; the poster had an older (January 2003) copy.
  2. Prepare the dictionary: the thread says every file needs an auto-increment identifier as its first LONG field, set up with the autoincrement checkbox off. Without it the script gives many errors.
  3. Another poster advised: no constraints on the autoinc keys, let the template generate the triggers for the auto-increment, do not use the comments option, then ignore the errors on running the script and commit.
  4. If the errors are unclear, post them; the template author asked for that.
  5. The poster also reported that the template chain's MS SQL converter worked fine for him.

Caveats

  • The Firebird script generator was described in the thread as a work in progress.
  • Capesoft FileManager 3 was announced as getting Firebird support; the thread does not say whether it did.
  • The advice to ignore errors and commit comes from one user who used it with DataWorkbench.

Today (2026)

Not re-tested. The template set is old; another entry covers a DCT2SQL Firebird script giving error 47. Check the generated script against a current Firebird server before running it on real data.

Sources: Sukhendu B. (May 2004, the question), Ruben S., Chris B., Bo S., Roberto A., Johan V. (May 2004) in softvelocity.clarion.databasedrivers.