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.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 search in many tables

Author  Topic 

jrahma
Starting Member

16 Posts

Posted - 2008-09-03 : 20:13:12
I want a statement to search specefic fields in many tables and return three columns:

table_name, record_id, the_result_found

for example search the word honda in field: remarks in remarks table, customer_name and customer_description in customers table, vehicle_make, vehicle_brand in vehicles table


how to do that?

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-09-03 : 22:04:20
http://vyaskn.tripod.com/search_all_columns_in_all_tables.htm
Go to Top of Page
   

- Advertisement -