Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 How can I list all the table names from my databas

Author  Topic 

anupalavila
Yak Posting Veteran

56 Posts

Posted - 2008-12-30 : 04:35:25
Hi
How can I list all the table names from my database

Thanks and Regards
Anu Palavila

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-30 : 04:39:25
[code]SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE'[/code]
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-30 : 04:41:04
or
 SELECT * FROM sysobjects where type='u'
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-12-30 : 05:11:45
To include all tables

EXEC sp_tables

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

anupalavila
Yak Posting Veteran

56 Posts

Posted - 2008-12-30 : 06:37:26
Thanks to all for the valuable replay

Thanks and Regards
Anu Palavila
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-30 : 06:45:35
welcome
Go to Top of Page
   

- Advertisement -