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)
 Select Statement for retrieving the tablename from list of tables

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-12-03 : 08:01:20
Mihir writes "What is the select statement for finding a table name from the list of tables ?

Like as in Oracle we have

select * from tab;

or select * from tabs
where table_name like 'Emp';

I do not want to use sp_help or select * from sysobjects or something like that. I would like to have a specific query for finding a table from the list of tables.

"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-12-03 : 08:02:23
What's wrong with using sp_help or sysobjects?

Look at the INFORMATION_SCHEMA.TABLES view. Books Online has more details on it.
Go to Top of Page
   

- Advertisement -