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 |
|
aashirwaads
Starting Member
8 Posts |
Posted - 2007-11-22 : 07:34:03
|
| Hi Friends,I need help from you all....I am using SQL Server 2005...There is a column called Serial Number in many tables....I want to find out all tables in the db which contains column named serial number...Can we query like that?Thanks & Regards |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-11-22 : 07:36:31
|
yes. Just query syscolumns table or INFORMATION_SCHEMA.COLUMNS view.Select * from INFORMATION_SCHEMA.COLUMNSwhere column_name = 'serialnumber' Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
|
|
|