Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expression Web and SQL server 2

Status
Not open for further replies.

lookup13

IS-IT--Management
Oct 17, 2002
38
US
I have designed a webpage for part info , a search and results
Linked to a Part database , but I want to search Data base for part numbers, I can search for exact using

Select * from Parts
Where Part_number like part_number

But I want to use wild cards *123* results 123456 Screw etc

Any Ideals , simple is best

Thank you in advance

 
Yes and No ,Simple is best , when time is in short supply with a budget.Creating your own code would have less issues on certain apps, but on this simple Query , this will do.

On my search I want all data that is related to BC
BC154,BC155 an 123BC45,xcv12BC

Thanks again
 
Change your command to
Code:
"SELECT * FROM [Parts] WHERE ([Part_number] Like @Part_number + '%')">

it should perform faster too.
 
Oh no problem. There is a Jason that posts often in that fourm. Maybe you thought I was him :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top