Applies to: every Clarion version whose dictionary has the table-creation option; reported on Clarion 6 Enterprise build 9058 with the MSSQL driver against SQL Server 2005 (Jul 2009).
Problem
One table out of a hundred is deleted and recreated, almost daily. Three multi-user applications use it: a status board that refreshes six views on six threads every minute through PROP:SQL, a batch process that adds or updates rows every second for an hour, and a shipping application on wifi terminals and desktops. The status board GPFed at about the time the table disappeared.
Solution
- In the dictionary, switch off table creation ("Enable Table Creation" / "Create table") for the SQL tables.
- The reason, as the posters explained it: when the application cannot open the table for any reason, including a transient network fault, it concludes the table does not exist and creates it. The driver translates a Clarion CREATE into a SQL DROP followed by CREATE TABLE, so the fact that the table still exists on the server does not save it.
- As a second line of defence, remove the DELETE permission from the SQL users; the posters expected this to stop the loss at the cost of an error message in the application when it tries.
Caveats
- The thread did not identify which of the three applications issued the CREATE; the original poster suspected the status board and turned CREATE off for all.
- The permission suggestion was not tested in the thread; the exact server permission that blocks a DROP was not discussed.
Today (2026)
Still relevant: a production dictionary should not have create rights on SQL tables, and the CREATE-as-DROP behaviour is the reason. Not re-tested on a current build.
Sources: Paul G. (Jul 2009, the question), Mauricio, Jon W., Scott S. (Jul 2009) in softvelocity.clarion.databasedrivers.