Removes a table, and all its data, from a database.
DROP TABLE [ IF EXISTS ] table-name
The DROP TABLE statement drops the specified table from the database. All data in the table and any indexes and keys are also removed.
UltraLite does not process requests or queries referencing the table, or its indexes, while the DROP TABLE statement is being processed. Furthermore, you cannot execute DROP TABLE when there are active queries or uncommitted transactions.
Use the IF EXISTS clause if you do not want an error returned when the DROP TABLE statement attempts to remove a table that does not exist.
For UltraLite.NET, you cannot execute this statement unless you also call the ULBulkCopy.Dispose method for all data objects (for example, ULDataReader).
Statements are not released if schema changes are initiated at the same time.
The following statement deletes a fictitious table, EmployeeBenefits, from the database:
DROP TABLE EmployeeBenefits