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
 General SQL Server Forums
 New to SQL Server Programming
 Export Table Properties-SQL Express 2005

Author  Topic 

gnoston
Starting Member

1 Post

Posted - 2008-04-05 : 11:49:50
Another Newbie here...sorry if this is an easy question:
How do I extract Table Properties (field names, type, length, PK/FK) from multiple tables and into an Excel spreadsheet?

Thanks in advance.

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-04-05 : 12:25:12
Use import /export wizard.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-04-05 : 23:25:07
Script them in ssmse.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-04-06 : 02:55:28
or try with:-
EXEC sp_MSforeachtable @command1="sp_help ?"

and use this to export it

http://weblogs.sqlteam.com/mladenp/archive/2006/07/25/10771.aspx
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-04-08 : 05:57:42
I think scipting the objects is the best approach here

Madhivanan

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

- Advertisement -