ASP问题缺少对象: 'conn'麻烦各位了

setrs1=conn.execute("select*fromzt_typeorderbyzt_typeidasc")出错的这是一行...
2026-12-04 06:44:21
推荐回答(3个)
回答1:

在你的文件头有没有调用conn文件
conn文件里面是 连接数据库的代码

在你的文件头加上


还不行的,把你的所有代码都贴出来,我们看看错误在哪里

回答2:

conn 未定义或未打开。
这里的conn是 adodb.connection 对象

回答3:

加上
set Conn = Server.CreateObject("ADODB.CONNECTION")

Conn.open 数据库连接