Is there some way to retreive all the table names from a database (Access or Oracle) without knowning (or specifying) them in advance with C#?
Thanks
Riaan
Is there some way to retreive all the table names from a database (Access or Oracle) without knowning (or specifying) them in advance with C#?
Thanks
Riaan
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
yogesh rain8 reputationPosted Aug 13, 2007, 8:52 PM EDT
ys you can,if u ve enough rights den u can execute query SELECT * FROM ALL_OBJECTS WHERE OBJECT_TYPE = 'TABLE'
or
SELECT * FROM ALL_TABLES
second query ll give u all tables from all schema and system tables, u can segregate on schema as well
{if u are using the Oracle}
abhishek trivedi112 reputationPosted Feb 1, 2008, 1:03 AM EST
You can get all the tables from the Database using the below Query:
"Select * from sysobjects"
then differenciate the tables u want.