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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I found out Field Name and Table which contain certain value?

Status
Not open for further replies.

srkk

IS-IT--Management
Sep 18, 2002
14
Hi,

How can I found out Field Name and Table which contain certain value?

For example, I have Customer Code of "AA1100", but the problem i need to search through whole database to find out which table and field that contain this value, is it possible to do this in MS SQL 2000?

edm
 
Yes, with dynamic SQL and some crawling over metadata (system tables).

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Any coding example?

edm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top