Using SQL Server 2008, say I have a table called testing with 80 columns and I want to find a value called foo.
testing
foo
I can do:
S
I think this is one of the best ways of doing it
SELECT * FROM sys.columns a inner join ( SELECT object_id FROM sys.tables where type='U'--user table and name like 'testing' ) b on a.object_id=b.object_id WHERE a.name like '%foo%'