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 |
rpc86
Posting Yak Master
200 Posts |
Posted - 2006-05-23 : 22:15:14
|
Hi guys,This SQLTeam really helps us a lot more. Thank for the recent help.My question for now is:How will I know the table names with a specific column name?Say, I need to know all tables with column name "BuyerCode". If I run this in QA, all tables will be displayed.Thank you very much. |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2006-05-23 : 22:20:54
|
[code]select TALBE_NAME from INFORMATION_SCHEMA.COLUMNS where COLUMN_NAME = 'BuyerCode'[/code] KH |
 |
|
rpc86
Posting Yak Master
200 Posts |
Posted - 2006-05-23 : 22:39:33
|
Thank you.It works !! |
 |
|
|
|
|