I am using the following code (in B4A) to delete an old CUSTOMERS table and then rename a new version of it. However, I always end up with a blank (new) CUSTOMERS table. If I don't do the rename the CUSTOMERS_NEW table is perfectly ok with the correct number of rows (1825).
sqlOBT.ExecNonQuery("DROP TABLE customers")
sqlOBT.ExecNonQuery("ALTER TABLE newcustomers RENAME TO customers")
sqlobt.close
I am puzzled as to why it doesn't work.