Hi all,
I am writing a webpage that has a search that simply builds the search with entered words. I have compiled this so pipe symbols are between the search words.
I then want to submit this to a sproc to then bring back the data.
Is there a way to write an inline query for each of these keywords without having to 'build' my query and execute.
I am very against building the query as a string and executing this!
is there a way to split the string into an array and search for these as a 'like'
for example @String = 'sony|stereo'
I want to search for any product that has 'sony' + 'stereo' in the description
the site is public facing so am very aware of sql injection, also I would prefer to have inline sql as it makes the database work faster and more efficiant in the long term!
Any ideas
Cheers
daveJam
easy come, easy go!!!
I am writing a webpage that has a search that simply builds the search with entered words. I have compiled this so pipe symbols are between the search words.
I then want to submit this to a sproc to then bring back the data.
Is there a way to write an inline query for each of these keywords without having to 'build' my query and execute.
I am very against building the query as a string and executing this!
is there a way to split the string into an array and search for these as a 'like'
for example @String = 'sony|stereo'
I want to search for any product that has 'sony' + 'stereo' in the description
the site is public facing so am very aware of sql injection, also I would prefer to have inline sql as it makes the database work faster and more efficiant in the long term!
Any ideas
Cheers
daveJam
easy come, easy go!!!