Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

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

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 How to check in all rows and column of the table
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aged Yak Warrior

567 Posts

Posted - 05/03/2013 :  12:04:54  Show Profile  Reply with Quote
Is it possible to check in all rows and columns on a table for this string:'BSYRRVP'
select * from AL_PARENT_CHILD

Thanks for the helpful info.

Flowing Fount of Yak Knowledge

1054 Posts

Posted - 05/03/2013 :  12:30:08  Show Profile  Reply with Quote
There might be even better ways of searching it but here it goes a possible one :)

SELECT * from Table
WHERE Col1+' '+Col2+' '+Col3+...' '+ColN Like '%BSYRRVP%'

Note: Columns in Where conidtion should only be of string datatypes.

Go to Top of Page
  Previous Topic Topic Next 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.03 seconds. Powered By: Snitz Forums 2000