Microsoft JET Database Engine error '80040e14' 问题急!!!!!!!!!!!!!
代码如下:
<%
dim ComeUrl,cUrl,AdminName
ComeUrl=lcase(trim(request.ServerVariables("HTTP_REFERER")))
if ComeUrl="" then
response.write "<br><p align=center><font color='red'>对不起,为了系统安全,不允许直接输入地址访问本系统的后台管理页面。</font></p>"
response.end
else
cUrl=trim("http://" & Request.ServerVariables("SERVER_NAME"))
if mid(ComeUrl,len(cUrl)+1,1)=":" then
cUrl=cUrl & ":" & Request.ServerVariables("SERVER_PORT")
end if
cUrl=lcase(cUrl & request.ServerVariables("SCRIPT_NAME"))
end if
AdminName=replace(session("AdminName"),"'","")
if AdminName="" then
call CloseConn()
response.redirect "login.asp"
response.End()
end if
sql="select UserName from Admin where UserName='" & session("AdminName") & "' and Password='" & session("AdminPassword") & "'"
set rs=conn.execute(sql) 这就是报错的31行
if rs.eof and rs.bof then
rs.close
response.Redirect("login.asp")
response.End()
end if
Function uname(id)
strSQL = "select username from user where UserID="&id
set rsx = conn.execute(strSQL)
uname=rsx("username")
set rsx = nothing
end Function
Function ckbuy(id)
if id=1 then
ckbuy="客户出售"
else
ckbuy="客户购买"
end if
end Function
%>
原本什么问题也没有,可换了服务器以后就报错说
Microsoft JET Database Engine error '80040e14'
Syntax error in FROM clause.
/admin/admin.asp, line 31 我该怎么解决啊
<%
dim ComeUrl,cUrl,AdminName
ComeUrl=lcase(trim(request.ServerVariables("HTTP_REFERER")))
if ComeUrl="" then
response.write "<br><p align=center><font color='red'>对不起,为了系统安全,不允许直接输入地址访问本系统的后台管理页面。</font></p>"
response.end
else
cUrl=trim("http://" & Request.ServerVariables("SERVER_NAME"))
if mid(ComeUrl,len(cUrl)+1,1)=":" then
cUrl=cUrl & ":" & Request.ServerVariables("SERVER_PORT")
end if
cUrl=lcase(cUrl & request.ServerVariables("SCRIPT_NAME"))
end if
AdminName=replace(session("AdminName"),"'","")
if AdminName="" then
call CloseConn()
response.redirect "login.asp"
response.End()
end if
sql="select UserName from Admin where UserName='" & session("AdminName") & "' and Password='" & session("AdminPassword") & "'"
set rs=conn.execute(sql) 这就是报错的31行
if rs.eof and rs.bof then
rs.close
response.Redirect("login.asp")
response.End()
end if
Function uname(id)
strSQL = "select username from user where UserID="&id
set rsx = conn.execute(strSQL)
uname=rsx("username")
set rsx = nothing
end Function
Function ckbuy(id)
if id=1 then
ckbuy="客户出售"
else
ckbuy="客户购买"
end if
end Function
%>
原本什么问题也没有,可换了服务器以后就报错说
Microsoft JET Database Engine error '80040e14'
Syntax error in FROM clause.
/admin/admin.asp, line 31 我该怎么解决啊
...全文
相关推荐
解决Access出现Microsoft JET Database Engine (0x80004005)未指定的错误
在使用Microsoft Access数据库时,有时会遇到一个名为“Microsoft JET Database Engine (0x80004005) 未指定的错误”的问题。
Microsoft JET Database Engine 错误 ‘80004005’ 未指定的错误的完美解决方法
标题中的“Microsoft JET Database Engine 错误 ‘80004005’ 未指定的错误的完美解决方法”是指在使用ASP(Active Server Pages)进行数据库操作时遇到的一种常见错误
IIS常见问题解答集锦
JET Database Engine 错误 '80040e09' 不能更新。
c连接access数据库手记.pdf
检查系统是否已安装MDAC 2.6或更高版本,或者Microsoft Access Database Engine Redistributable,这是运行ACE OLE DB提供程序所必需的。
VS2010 C++ ADO读取ACCESS 数据库
首先,确保你已经安装了Microsoft Office或至少是Microsoft Access Database Engine,这是用来处理ACCESS数据库的必要组件。


