DtvLong dal_mdb_del_tab (tab_nam, chk_flg)

Deletes the table with the passed name from the data base.

Input Parameters Significance
char *tab_nam name of the table in the data base
char chk_flg check flag:
0 = delete, even if table filled
1 = only delete empty table

Output Parameters Significance
no -

Return Code Significance
0 no error.
1 table contains entries when check flag is set
2 table does not exist in the data base
-1 data base error deleting the table

Prior to calling this function the table must have been created in the data base.

Attention! If the check flag is not set, deleting a non-empty table can result in severe inconsistencies in the data model, because internal references of the records contained are not removed. That is why you should always set the check flag (with the exception of reload functions).