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
 Transact-SQL (2000)
 To get the table and sp names

Author  Topic 

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2004-10-19 : 17:37:36
How can I select all the table names and stored procedures from a database.For buliding the database i need to provide all the list of tables and stored procedures.Is there any way I can query and get the names from the database.
eg:;All the tables and procedures in database AAA

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-10-19 : 17:39:57
Preferred way using INFORMATION_SCHEMA views:

select specific_name
from information_schema.routines

select table_name
from information_schema.tables

Tara
Go to Top of Page

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2004-10-19 : 17:54:33
Thanks a lot Tara....got it...great..
Go to Top of Page
   

- Advertisement -