# MSSQL: one table keeps getting dropped and recreated empty in production

**URL:** <https://forums.softvelocity.com/t/mssql-one-table-keeps-getting-dropped-and-recreated-empty-in-production/1054>\
**Category:** Knowledge Base\
**Tags:** unverified, database-drivers\
**Created:** [November 9, 2026, 1:41am UTC](https://forums.softvelocity.com/t/mssql-one-table-keeps-getting-dropped-and-recreated-empty-in-production/1054 "2026-11-09T01:41:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [November 9, 2026, 1:41am UTC](https://forums.softvelocity.com/t/mssql-one-table-keeps-getting-dropped-and-recreated-empty-in-production/1054/1 "2026-11-09T01:41:38Z")

</div>

**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**

1. In the dictionary, switch off table creation ("Enable Table Creation" / "Create table") for the SQL tables.
2. 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.
3. 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.
