Question
Using MS SQL Like Queries
Hi im running a MS sql database behind my Cold fusion site.
I have a question on like queries that someone here will probably be able to
help me
I have a query that uses the following code
name like '#search#%'
The word Danger Sign appears as a name in my database.
When I do a search on Danger Signs no records are returned.
However when i do a search on Danger Sign my records are returned.
I also tried to use
name like '%#search#%'
which also returned no results on Danger Signs
Is the fact that my search term is two words causing the problem?
Thanks in advance
I have a question on like queries that someone here will probably be able to
help me
I have a query that uses the following code
name like '#search#%'
The word Danger Sign appears as a name in my database.
When I do a search on Danger Signs no records are returned.
However when i do a search on Danger Sign my records are returned.
I also tried to use
name like '%#search#%'
which also returned no results on Danger Signs
Is the fact that my search term is two words causing the problem?
Thanks in advance
