Converting a large TPS application to MS SQL: procedures disappear when the dictionary changes - keep one dictionary and change the driver

Applies to: Clarion C6 EE as reported by the poster; the thread names no other version.

Problem

The poster had scripted the SQL tables and imported some TPS data, but Clarion deleted many procedures at start-up once the dictionary used SQL for one table. Other trouble: no .txa could be created from the app (heap overflow), importing procedures into a new app crashed the IDE, and dates changed from LONG to DATE needed the new date group.

Solution

  1. Keep the original application and its dictionary. After creating the MSSQL tables and moving the data, change the driver to MSSQL or ODBC in that same dictionary. There should be one dictionary, not two.
  2. A new dictionary with imported procedures will not match; the idents differ. Export a complete TXA and remove the idents, or use a selective TXA export and import. One poster fixed his idents with a third-party tool.
  3. The heap overflow when creating a TXA was read as a window definition too big to export (64 K); reduce controls or shorten prompts. A corrupt template registry was the other guess: delete Registry.trf and re-register the templates.
  4. For dates, wrap the field: a STRING(8) with a GROUP,OVER(...) holding a DATE and a TIME. If the SQL column holds no time portion, a plain LONG to DATE change often works.

Caveats

  • The poster later reported the app worked but slowly. For the "Connection is busy with the results for another hstmt (S1000)" error, set File{Prop:BusyHandling}=2 before any connection is made; this does not work when the connection is made with OPEN.
  • Slow filters that cannot be translated are evaluated on the client; use the driver trace and SQL() filters.
  • Multi-paragraph memo data being cut on export got a suggestion to put double quotes around strings in TopScan; no result was posted.

Today (2026)

Not re-tested. The one-dictionary advice likely still holds; Clarion 6 era steps may differ on current builds.

Sources: Nick (May 2006, the question), Robert A., Bjarne H., Sean H. (May 2006) in softvelocity.clarion.databasedrivers.