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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
abhishek trivediPosted Feb 1, 2008, 6:03 AM
You can get all the tables from the Database using the below Query:
"Select * from sysobjects"
then differenciate the tables u want.
yogesh rainPosted Aug 14, 2007, 12:52 AM
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}