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)
 Searching a keyword in all tables

Author  Topic 

melih
Starting Member

7 Posts

Posted - 2007-03-27 : 11:53:33
Hi,

I need to search specific words or phrases in all the tables in the db. For example: I want to search for xyz in all the text fields in all the tables in abc database.

Is this possible?

Thanks in advance

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-03-27 : 11:57:17
See if this helps:

[url]http://vyaskn.tripod.com/search_all_columns_in_all_tables.htm[/url]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-03-27 : 12:04:09
Then there's my twist

http://weblogs.sqlteam.com/brettk/archive/2005/02/08/4144.aspx

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

melih
Starting Member

7 Posts

Posted - 2007-03-27 : 12:12:36
thanks for the quick replys guys...

I will check those links now...
Go to Top of Page

melih
Starting Member

7 Posts

Posted - 2007-03-27 : 12:53:31
This one worked for me...
Thanks again...

quote:
Originally posted by harsh_athalye

See if this helps:

[url]http://vyaskn.tripod.com/search_all_columns_in_all_tables.htm[/url]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"

Go to Top of Page
   

- Advertisement -