http://dzkc/ygrz/tz.htm),但是asp文件(比如http://dzkc/ygrz/index.asp)就报错:
错误 '80020009'
/ygrz/index.asp,行 72
这是哪里出了问题?
报错行是<% if myrecordset.fields("bir")=d2 then%>;
----
<%set myconnection=server.createobject("adodb.connection")
set myrecordset=server.createobject("adodb.recordset")
myconnection.open "DSN=ygrzgl;UID=;PWD="
str2=lcase(Request.ServerVariables("REMOTE_USER"))
str1="userdm="
str1=str1&"'"&str2&"'"
myrecordset.activeconnection=myconnection
myrecordset.source="select * from user where "&str1
myrecordset.open
d1=cstr(formatdatetime(date()+1,2))
d2=mid(d1,6,2)&mid(d1,9,2)
d3=cstr(formatdatetime(date(),2))
d4=mid(d3,6,2)&mid(d3,9,2)
%>
---------
网站下有两文件夹ygjl和ygrz,ygjl下asp页都能正常显示,ygrz中都报错。都有mdb文件且在odbc下配置好了,
-------------------------
正常显示的asp页代码如下:
<%set grconnection=server.createobject("adodb.connection")
set grrecordset=server.createobject("adodb.recordset")
grconnection.open "DSN=ygjl;UID=;PWD="
grrecordset.activeconnection=grconnection
grrecordset.source="select distinct xm,gh from ygjbqk where dcf='F' order by gh"/>

[求救]更换了服务器,现在访问不了内网asp页面

发布时间:2024-05-15 16:12 发布:上海旅游网

问题描述:

本来是一台老服务器NT的,上面跑员工日志,用的是access数据库
后来更新服务器,装了2003server,iis6.0
把老机器上wwwroot下的文件全部拷贝到新机器上,然后配置了iis
现在打开htm文件没问题(比如http://dzkc/ygrz/tz.htm),但是asp文件(比如http://dzkc/ygrz/index.asp)就报错:
错误 '80020009'
/ygrz/index.asp,行 72
这是哪里出了问题?
报错行是<% if myrecordset.fields("bir")=d2 then%>;
----
<%set myconnection=server.createobject("adodb.connection")
set myrecordset=server.createobject("adodb.recordset")
myconnection.open "DSN=ygrzgl;UID=;PWD="
str2=lcase(Request.ServerVariables("REMOTE_USER"))
str1="userdm="
str1=str1&"'"&str2&"'"
myrecordset.activeconnection=myconnection
myrecordset.source="select * from user where "&str1
myrecordset.open
d1=cstr(formatdatetime(date()+1,2))
d2=mid(d1,6,2)&mid(d1,9,2)
d3=cstr(formatdatetime(date(),2))
d4=mid(d3,6,2)&mid(d3,9,2)
%>
---------
网站下有两文件夹ygjl和ygrz,ygjl下asp页都能正常显示,ygrz中都报错。都有mdb文件且在odbc下配置好了,
-------------------------
正常显示的asp页代码如下:
<%set grconnection=server.createobject("adodb.connection")
set grrecordset=server.createobject("adodb.recordset")
grconnection.open "DSN=ygjl;UID=;PWD="
grrecordset.activeconnection=grconnection
grrecordset.source="select distinct xm,gh from ygjbqk where dcf='F' order by gh

问题解答:

错误 '80020009' 参考:http://zhidao.baidu.com/question/16615646.html

index.asp,行 72 这行是什么?

热点新闻