谁能帮我解决微软设“卡”,急!急!急!
朋友:
谁能帮我解决asp的限制。程序代码:
sub search(word)
dim result
sql="select ID from Table1 where name like "'%" & word & "%'"
'sql1="select ID from Table1 where name like "'%上海%'"
result=dbconn.execute(sql)
do whlie not result.eof
....
loop
end sub
dim aa
aa=request("aa")
Search(aa)
我们讨论的情况是数据库(sqlserver6.5或7.0)中肯定有符合条件的记录。
这段代码,执行时。
当request("aa")为英文,数值时执后,result.eof正常。
当request("aa")为中文例("上海"),result.eof 不正常,result.eof始终为true.
若将sql改为sql1,时执行正常。
我对这种情况的解释是微软公司有意限制中文用户执行通用搜索(即查询对象为变量且变量值为中文)。如我的解释正确,我将万愤慨。但现在眼下问题是如何完成这个搜索功能,不至本人遭受巨大损失。请高手不吝赐教。