DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   Searching MY DB Records with .NET (http://www.daniweb.com/forums/thread116160.html)

scottmichael Mar 28th, 2008 12:45 pm
Searching MY DB Records with .NET
 
I am new to .net and want to create a search field that querries my SQL database then display results sort of like google. Meaning query all fields for %Like% statements. I am using Visual Studio 2005.

SheSaidImaPregy Mar 28th, 2008 3:08 pm
Re: Searching MY DB Records with .NET
 
search your records...

SELECT * FROM stories where title LIKE '%var%' OR story LIKE '%var%'

Simple. can get much more complex if you wish. but you need to be more specific on what you are after.

Hosam Kamel Apr 4th, 2008 8:29 pm
Re: Searching MY DB Records with .NET
 
you can also use a SQL datasource and assign the select statment mentioned by SheSaidImaPregy to its select query.


All times are GMT -4. The time now is 3:18 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC