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
 General SQL Server Forums
 New to SQL Server Programming
 retrieving entire tables in a db

Author  Topic 

sumalatha
Starting Member

6 Posts

Posted - 2009-03-05 : 06:55:12
what is the command which is used to know the entire tables in a database like in oracle will use
select * from tab


which command we have to use in sql server2000

Jai Krishna
Constraint Violating Yak Guru

333 Posts

Posted - 2009-03-05 : 07:03:44
select * from sys.sysobjects where type = 'u'

Jai Krishna
Go to Top of Page

Jai Krishna
Constraint Violating Yak Guru

333 Posts

Posted - 2009-03-05 : 07:04:20
select * from information_schema.tables where table_type = 'Base Table'

Jai Krishna
Go to Top of Page

sridhar.dbe
Starting Member

34 Posts

Posted - 2009-03-05 : 07:56:41
select name from sys.tables

isk
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-03-05 : 08:55:29
quote:
Originally posted by Jai Krishna

select * from sys.sysobjects where type = 'u'

Jai Krishna


OP uses SQL Server 2000

select * from sysobjects where xtype = 'u'


Madhivanan

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

- Advertisement -