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
 Column Name's of all table from different DB

Author  Topic 

divyaram
Posting Yak Master

180 Posts

Posted - 2012-03-08 : 06:46:50
Hi All,

I have Different DB's( there are around 100 DB's). i would like to get all tabletable and corresponding column_name from these 100 Db's.
How will i get these details .

Thanks in advance ,
Divya

Regards,
Divya

divyaram
Posting Yak Master

180 Posts

Posted - 2012-03-08 : 07:44:40
Anyone help me on this :(

Regards,
Divya
Go to Top of Page

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2012-03-08 : 08:29:15
information_schema.columns and msforeachdb comes to mind...

http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspx
How to ask: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

For ultra basic questions, follow these links.
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-03-08 : 10:22:02
quote:
Originally posted by divyaram

Hi All,

I have Different DB's( there are around 100 DB's). i would like to get all tabletable and corresponding column_name from these 100 Db's.
How will i get these details .

Thanks in advance ,
Divya

Regards,
Divya


are all these 100 DBs in same server?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -