请教如下的ASP语句有什么问题呢
大家好我的ASP查询经常遇到如下问题
Microsoft OLE DB Provider for ODBC Drivers (0x80040E31)
[Microsoft][ODBC SQL Server Driver]超时已过期
请大家帮忙看下是什么原因呢,万分感谢:以下是代码
<%
ms = Request.QueryString("ms")
if ms <>"" then
dim ms_num
Set ms_num=Server.CreateObject("adodb.recordset")
dim sql1981
sql1981="select mod_firm from NUM_to_Mobile where mobile='"&ms&"'"
ms_num.open sql1981, conn198,3,3
if ms_num.EOF then
Response.Write("没有查到该终端的数据类型")
else
dim no
no = ms_num("mod_firm")
Response.Write(no)
end if
%>
</p>
<p>
使用该终端的手机号码有<br>
<%
dim po
Set po=Server.CreateObject("adodb.recordset")
dim sql1982
sql1982="select phonenumber from no_to_imsi where '46003'++imsia in(select imsi from CDMA_1X_Data_V12 where CAST(ucmob_model AS VARCHAR(20)) + '-' + CAST(wMOB_FIRM_REV AS VARCHAR(20)) = '"&no&"')"
po.open sql1982, conn198,3,3
if po.EOF then
Response.Write("该终端在1周内无进行任何呼叫")
else
response.write "一共搜索到"&po.recordcount &"条记录"&"<br>"
do while not PO.eof
response.write po(0)&" <br>"
po.movenext
loop
end if
po.close
set po=nothing
end if
%>
</p>
我在服务器上用查询语句,能够得出结果
Microsoft OLE DB Provider for ODBC Drivers (0x80040E31)
[Microsoft][ODBC SQL Server Driver]超时已过期
请大家帮忙看下是什么原因呢,万分感谢:以下是代码
<%
ms = Request.QueryString("ms")
if ms <>"" then
dim ms_num
Set ms_num=Server.CreateObject("adodb.recordset")
dim sql1981
sql1981="select mod_firm from NUM_to_Mobile where mobile='"&ms&"'"
ms_num.open sql1981, conn198,3,3
if ms_num.EOF then
Response.Write("没有查到该终端的数据类型")
else
dim no
no = ms_num("mod_firm")
Response.Write(no)
end if
%>
</p>
<p>
使用该终端的手机号码有<br>
<%
dim po
Set po=Server.CreateObject("adodb.recordset")
dim sql1982
sql1982="select phonenumber from no_to_imsi where '46003'++imsia in(select imsi from CDMA_1X_Data_V12 where CAST(ucmob_model AS VARCHAR(20)) + '-' + CAST(wMOB_FIRM_REV AS VARCHAR(20)) = '"&no&"')"
po.open sql1982, conn198,3,3
if po.EOF then
Response.Write("该终端在1周内无进行任何呼叫")
else
response.write "一共搜索到"&po.recordcount &"条记录"&"<br>"
do while not PO.eof
response.write po(0)&" <br>"
po.movenext
loop
end if
po.close
set po=nothing
end if
%>
</p>
我在服务器上用查询语句,能够得出结果
...全文
相关推荐
ASP技术常遇问题解答-如何避免SQL语句中含有单引号而导致操作失败?.zip
ASP技术问题解答,希望对你有帮助。
ASP执行字符串语句
ASP把字符串当语句执行
ASP连MySQL数据库乱码问题
该程序经过测试验证。通过过了的 VS2005 和 VS2008 没问题的发出来和大家共享哈
ASP中获得Select Count语句返回值的方法
主要介绍了ASP中获得Select Count语句返回值的方法,一般用在统计数据时使用Select Count语句,以此一获得查询到的行数,需要的朋友可以参考下
asp错误情况的处理
今天弄ASP,遇到了很多问题,想想大家可能也会遇到这类的问题,在网上也找了一些资料,


