User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 363,798 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,633 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser:

WildCard search in SQL Server 2005?

Join Date: Jul 2005
Location: Dallas, TX
Posts: 481
Reputation: campkev is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: WildCard search in SQL Server 2005?

  #3  
May 9th, 2008
  1. SELECT * FROM persons WHERE (prefix LIKE '%'+@input+'%'
  2. OR
  3. firstname LIKE '%'+@input+'%'
  4. OR
  5. lastname LIKE '%'+@input+'%')
  6. AND address LIKE '%'+@addressinput+'%'
Last edited by campkev : May 9th, 2008 at 2:45 pm.
Reply With Quote  
All times are GMT -4. The time now is 11:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC