Database drivers: the hub

Looking for the old newsgroup answers? They are here. This Knowledge Base is where the SoftVelocity NNTP newsgroups went. Twenty-five years of threads from discuss.softvelocity.com are being read thread by thread and the useful answers written up as entries: the question as a symptom, the answer the thread reached, who answered and when, and a note on whether it still holds today. Nothing is invented; every entry cites its threads.

Better than the newsgroups ever were. On the server you had to know which group to open and scroll a flat list of subjects; the answer was five posts down a thread, under three quoted copies of the question. Here every entry is one page with the answer at the top, full-text searchable from the search box on any forum page, tagged by area and by status, and open to edit. Search engines index it, so the next person with your error text finds it from Google too.

This hub covers the database drivers. Its entries come from the softvelocity.clarion.databasedrivers group, 2003 to 2026: over six hundred questions about connecting, deploying, column mapping, keys and auto-increment, PROP:SQL, transactions, and each driver in turn, one page per heading. The driver threads posted in the general version groups follow in a later pass. How an entry is built and what its status tag means: "How to read a Knowledge Base entry". Tell us what works and what does not in "Feedback on the Knowledge Base".

What this area covers. A Clarion application reads and writes through a file driver named in the dictionary. The ISAM drivers (TopSpeed / TPS, Btrieve, Clarion .DAT, ASCII, BASIC, DOS) own their files; the SQL drivers (ODBC, MSSQL, Oracle, PostgreSQL, SQLite, and MySQL or Firebird through ODBC) translate Clarion's record-at-a-time calls into SQL for a server; the IP driver puts a Clarion data server between the application and TPS files on a network. The in-memory driver holds a table in RAM. The same dictionary and templates serve all of them, which is why most of the questions below are about the seams: how a server type maps onto a Clarion column, who assigns the next number, and what the connection needs to reach the server.

The mistakes everyone makes once. Mapping a SQL datetime onto a plain DATE; expecting server auto-increment to be gap-free; a named-instance connection string that works on the LAN and not through a router; zero where the server needs NULL; a LOGOUT whose COMMIT is skipped on an error path. The driver trace, which every driver can write, settles most of them in minutes, so it is the first tool to reach for.

What changed recently. The SQLite driver arrived in Clarion 9; the MSSQL driver now rides Microsoft's ODBC Driver 17/18 rather than the retired Native Client; Firebird 3+ and PostgreSQL 10+ offer identity columns beside sequences. Every entry carries one status: Verified (re-tested on a current build), Unverified (a historical answer with a "Today" line that says whether it likely still holds), "Reported, not reproduced" (an unresolved thread, no defect asserted) or Superseded. A reviewer re-tests anything older than the version you run.

The headings

Official documentation

  • Database Drivers help: driver strings (BUSYHANDLING and the rest), the SQL type mapping tables, the auto-increment how-to ("How to Execute Auto Incrementing on the Server using SQL").
  • The IP Driver and Data Server reference (Winsock error list).
  • The Trace utility in the Clarion bin folder.