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 |
eirikr
Starting Member
18 Posts |
Posted - 2009-01-28 : 11:42:01
|
I have a database with hundred of tablesthere is not any schemas diagram existed.And i wanna look for a column "A" in one of the tables.What should i do and how. May use T-sql |
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2009-01-28 : 11:47:35
|
[code]SELECT OBJECT_NAME(object_id)as TablenameFROM sys.columnsWHERE name = 'A'[/code] |
 |
|
eirikr
Starting Member
18 Posts |
Posted - 2009-01-28 : 12:06:38
|
TY so much |
 |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-01-28 : 12:47:02
|
or use INFORMATION_SCHEMA viewSELECT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME='A' |
 |
|
|
|
|