dbTalk Databases Forums  

find the text in all tables in all databases

microsoft.public.sqlserver.server microsoft.public.sqlserver.server


Discuss find the text in all tables in all databases in the microsoft.public.sqlserver.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sarah
 
Posts: n/a

Default find the text in all tables in all databases - 10-05-2009 , 09:39 AM






Hi,

I'm using sql 2005 and 2008 and trying to find the text in all tables of all
databases.
Is there a script that I can use?

Thanks a lot,
Sarah

Reply With Quote
  #2  
Old   
Plamen Ratchev
 
Posts: n/a

Default Re: find the text in all tables in all databases - 10-05-2009 , 09:55 AM






Here is a script to search in all tables in one database:
http://vyaskn.tripod.com/search_all_...all_tables.htm

You can use the undocumented sp_MSForEachDB to iterate over all databases:
http://www.kodyaz.com/articles/sql-s...tsql-code.aspx

--
Plamen Ratchev
http://www.SQLStudio.com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.