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)
 description of all tables in a database

Author  Topic 

Hitesh Shah
Yak Posting Veteran

80 Posts

Posted - 2007-06-01 : 00:57:02
Is there any way / stored procedure whereby I can get an output in a file / screen about all tables / views / triggers /SPs in a database all together .

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-06-01 : 01:01:00
What kind of output you want for each of the DB object? You can try playing with Information_schema views to get desired output.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-06-01 : 05:07:23
Seems you need to Generate SQL Script

Madhivanan

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

Hitesh Shah
Yak Posting Veteran

80 Posts

Posted - 2007-06-01 : 06:13:09
I wish to get the detailed table designs , stored procedures ,triggers etc in a user database .
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-06-02 : 03:04:28
It is not clear what you want
Do you want DDL for the above?

Madhivanan

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

Hitesh Shah
Yak Posting Veteran

80 Posts

Posted - 2007-06-02 : 03:13:43
OK . In order to simplify the requirement. Please let me know from which systables I can get information about table designs , views , stored procedures , userd defined functions etc and what is the best way to output the same in a query .
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-06-02 : 03:38:30
Read about Information_schema in sql server help file

Madhivanan

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

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2007-06-02 : 04:03:55
<plug>or check out the app in my sig</plug>


www.elsasoft.org
Go to Top of Page

blindman
Master Smack Fu Yak Hacker

2365 Posts

Posted - 2007-06-03 : 00:19:12
Ummm...script the entire database from Enterprise Manager?

e4 d5 xd5 Nf6
Go to Top of Page

Hitesh Shah
Yak Posting Veteran

80 Posts

Posted - 2007-06-03 : 23:57:14
Information_schema is solving my purpose for the time being . I'll look at the tool recommended some time later .
Go to Top of Page
   

- Advertisement -