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.
Author |
Topic |
shadragon
Starting Member
5 Posts |
Posted - 2009-06-10 : 08:28:04
|
Hi all, Is there a way (through Query Analyzer preferably) to generate a list of all Tables and the fields in them to a file. I have a huge database and no schema to help me. I would rather not type it out manually... :)Cheers. |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-06-10 : 08:29:43
|
SELECT * FROM INFORMATION_SCHEMA.COLUMNS E 12°55'05.63"N 56°04'39.26" |
|
|
shadragon
Starting Member
5 Posts |
Posted - 2009-06-10 : 10:43:25
|
Peso - Worked perfectly. Cheers and Thanks. |
|
|
Nageswar9
Aged Yak Warrior
600 Posts |
Posted - 2009-06-11 : 00:31:27
|
Try this once,It is also work for u select t.name,c.name from sys.tables tinner join sys.columns as c on c.object_id = t.object_id |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2009-06-11 : 00:37:49
|
quote: Originally posted by Nageswar9 Try this once,It is also work for u select t.name,c.name from sys.tables tinner join sys.columns as c on c.object_id = t.object_id
sys.tables and sys.columns are not available in SQL 2000 KH[spoiler]Time is always against us[/spoiler] |
|
|
Nageswar9
Aged Yak Warrior
600 Posts |
Posted - 2009-06-11 : 00:46:16
|
Ok khtan |
|
|
|
|
|