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!

search for a field in SQL 1

Status
Not open for further replies.

jorg32

Programmer
Jul 10, 2003
57
BE
Hi,

Can somebody tell me how I can find 1 specific field in several tables in a SQL-Database?

Thank you for helping me.

Jorg
 
Go to query analyzer, press F4, type field name into "Object name", choose database, uncheck "All object types", check "Column", start search.
 
Thanks for your help!

Can I ask you another question about the same case?

Is it also possible to get the "Data Type" + "Length" of this field?

Jorg
 
AFAIK not this way... try:
Code:
select * from information_schema.columns where column_name = 'your_field_name'
 
try

Code:
select * from information_schema.columns
where column_name = 'columnname'

"I'm living so far beyond my income that we may almost be said to be living apart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top