Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is table part of the database?

Status
Not open for further replies.

mpgalvin

Programmer
Joined
Feb 5, 2001
Messages
119
Location
IE
Is there any way of programatically determining if a table is part of a dbc file, and if so remove it (using the REMOVE TABLE command, presumably)

Ideally, I'd like a program that will loop through all tables I have in a certain directory, determine if they're in the dbc and remove them from it.

Any thoughts?
 
Try using the INDBC() function. This one checks if the object is in the currently open database.

To remove the table from the DBC use:

REMOVE TABLE TableName | ?
[DELETE] [RECYCLE]

See MSDN for further explanations.

HTH,
Weedz (Wietze Veld)
My private project:Download the CrownBase source code !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top