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 Administration (2000)
 Stored_procedure

Author  Topic 

jung1975
Aged Yak Warrior

503 Posts

Posted - 2004-01-14 : 12:56:38
Is there any stored procedure that show the list of tables in a database?

similar to sp_help <table_name>






tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-01-14 : 12:59:37
sysobjects is where the objects are stored. type = 'U' will show the tables. But use the information schema:

SELECT *
FROM INFORMATION_SCHEMA.TABLES

Tara
Go to Top of Page
   

- Advertisement -