VBCE.com - The Premier Website For Visual Basic/CE Developers

 

*Dev Corner

Sample Code
Controls
Workarounds
Tips & Tricks
Q & A
Forums

*Goodies
Downloads
Software
Bookstore


*General
Home
What's New
General Info
Misc. Info


*News Worthy
News
Articles
Editorials
KB Articles
Reviews
Awards

*Miscellaneous
Web Links
Partners
Search
Feedback
Advertising

Sponsors


More...



DROP TABLE
This statement removes a table.

Source Code

Syntax

DROP TABLE tablename

Parameters

tablename
Specifies the name of the table to delete.

Return Values

One of the following error values can be returned:

  • E_OUTOFMEMORY
  • DB_E_ERRORSINCOMMAND
  • DB_E_NOTABLE

Remarks

Dropping a table deletes a database table from the device and destroys all data it contains. It is an irreversible process, so use this statement with care.

Example

Dim rs
Set rs = CreateObject("adoce.recordset")
rs.open "create table allfields (f1 varchar)"
rs.open "allfields"
MsgBox rs.fields.Count, , "Fields"
rs.Close
rs.open "drop table allfields"
Set rs = Nothing

 


VBCE.com is DevX Winner!

Unless otherwise noted, all information on VBCE.com is Copyright 1998 - 2002
Windows, Windows CE, and Visual Basic are trademarks of the Microsoft Corporation.
VBCE.com is not responsible for content on external sites.
Send all feedback to webmaster@vbce.com
Webmasters - feel free to link to
VBCE.com - Premier Website for Visual Basic/CE Development

Buy Books!