hi
i want the sql script of search in a field of database
of course i've written this scipt but in Unicode search it dosen't
work
select * from Table1 where tex like '%" +
Request.QueryString["search"].ToString() + "%' or topic like '%" +
Request.QueryString["search"].ToString() + "%'
thanks
xueduanyang@msn.com - 05 Oct 2007 15:20 GMT
% in sql means match more than one word.
select * from Table1 where tex like '[%]" +
Request.QueryString["search"].ToString() + "[%]' or topic like '[%]" +
Request.QueryString["search"].ToString() + "[%]'
try it!
> hi
> i want the sql script of search in a field of database
[quoted text clipped - 5 lines]
>
> thanks
rgparkins - 05 Oct 2007 19:29 GMT
On Oct 5, 2:45 pm, "miladha...@gmail.com" <miladha...@gmail.com>
wrote:
> hi
> i want the sql script of search in a field of database
[quoted text clipped - 5 lines]
>
> thanks
Have you tried to create a full text catalog on the field you wish to
search on, this may allow you unicode searches. You can create these
via enterprise manager on the database node, it is then just up to you
to implement the full text search on the programming side which is
very simple :)