SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Find word in tables and return entire row?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

getur.srikanth@gmail.com
Yak Posting Veteran

77 Posts

Posted - 01/15/2013 :  16:58:25  Show Profile  Reply with Quote
I have new requirement come in. it is little different. I have to search keyword (Which is either contains or exact) and search on tables and return entire row and store in a temp table.

I think need to build dynamic table which table has more columns in a row.

Gurus please help me out here.

Edited by - getur.srikanth@gmail.com on 01/16/2013 09:56:38

James K
Flowing Fount of Yak Knowledge

3589 Posts

Posted - 01/16/2013 :  10:22:15  Show Profile  Reply with Quote
Red Gate has a search tool - which is free: http://www.red-gate.com/products/sql-development/sql-search/
Go to Top of Page

getur.srikanth@gmail.com
Yak Posting Veteran

77 Posts

Posted - 01/16/2013 :  11:07:17  Show Profile  Reply with Quote
quote:
Originally posted by James K

Red Gate has a search tool - which is free: http://www.red-gate.com/products/sql-development/sql-search/




How can I use this tool my code? I need to in my code and show on page.
Go to Top of Page

James K
Flowing Fount of Yak Knowledge

3589 Posts

Posted - 01/16/2013 :  11:47:50  Show Profile  Reply with Quote
You cannot; it is meant to be an interactive tool. If you want to do the searching in your script, you would need some other way. Found this blog, will that help you? http://beyondrelational.com/modules/2/blogs/78/posts/11138/how-to-search-a-string-value-in-all-columns-in-the-table-and-in-all-tables-in-the-database.aspx
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 01/16/2013 :  23:05:09  Show Profile  Reply with Quote
what do you mean by below?
I think need to build dynamic table which table has more columns in a row.

didnt get what you mean by more columns in a row?

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

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000