3
Answers

how to retrieve all the table names of any database server

Satish

Satish

19y
12.3k
1
Using System.Data.OleDB;

how to retrieve all the table names of any database server
ex : oracle (scott/tiger) ?

I want to retrieve all the table names of (scott/tiger) using one combobox on the form. 
Pl. if anybody could suggest me how to do this in C#.NET ?
Answers (3)
0
Andrzej Wegierski

Andrzej Wegierski

NA 705 0 19y
Using .Net: see OleDbConnection, GetOleDbSchemaTable method. Unfortunately, another connections has no such methods ...
0
Rahul Goel

Rahul Goel

NA 18 0 19y
Hi

If you are looking 4 SQL Server 2000/2005 query then
you can fetch all of the tables from the current database by executing the mentioned query

select * from sysobjects where type='u'

This table is having all information reg the current database.

Hope you got your solution

rahu_ketu
0
Ashish Singhal

Ashish Singhal

NA 2.3k 1.8m 19y