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
 General SQL Server Forums
 New to SQL Server Programming
 Loop through tables and rows

Author  Topic 

dollars
Starting Member

2 Posts

Posted - 2011-08-18 : 09:45:00
Hi there

i am very new to SQL and i need to loop through a whole database with a lot of tables and rows to search for a specific string.

does anyone having an idea how to implement this? i prefer an sql-query instead of a Stored Procedure because i don't know SPs well

any help would be much appreciated.

greetings dollars (and girls)

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-08-18 : 09:47:18
http://vyaskn.tripod.com/search_all_columns_in_all_tables.htm

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

dollars
Starting Member

2 Posts

Posted - 2011-08-18 : 09:49:30
hi visakh16

omg how did u find that so fast? i asked google for about 15 minutes without any good result. yours seeme to be perfect, even its a storedProcedure (i guess there is no sql-query solution)

thanks!

greetings
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-08-18 : 09:50:09
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -