Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select * from tab in sql server ????

Status
Not open for further replies.

sujitopics

Programmer
Oct 9, 2001
69
KR
Hi

I have a doubt

in oracle we have select * from tab to show all the tables on that database.

my doubt is what is the query to show the above results in MsSqlserver 2000 i.e., to show all the tables in that database using query analizer

thanksinadvance

Yours
Suji
 

In the context of the database you can any of the following to display info about tables.

Select * From information_schema.tables

Select * From sysobjects
Where type='u'

exec sp_help
Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top