Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Same field names in all tables 1

Status
Not open for further replies.

iamtrying

Technical User
Sep 28, 2004
128
US
Hi,

I am working with a large SQl server 2000 database which has lots of tables. Is there an SQL statement which will return all the tables with a specific column(field) name? For example, show all tables with the field name call_time.

Thanks
 
Code:
Select Table_Name 
From   Information_Schema.COlumns
Where  Column_Name = 'call_time'

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
gmmastros

Thanks for responding. This is going to save me a lot of time when writing Crystal Reports! Perfect!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top