求助!

yanpeng1hao 2008-03-08 03:40:33
<%
dim memberuid,currentTime,conn,connstr
response.Expires="300"
session.Timeout="900"
response.Charset="gb2312"
set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=OraOLEDB.Oracle.1;Persist Security Info=True;User ID=hnpy;Password=hnpy;Data Source=bzgl"
'connstr="Provider=MSDAORA.1;;Persist Security Info=True;User ID=hnpy;Password=hnpy;Data Source=bzgl"
'connstr="DSN=bzgl1;uid=hnpy;pwd=hnpy"
conn.open connstr

%>
这一段代码有什么错误吗,提示缺少End?
...全文
64 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
sigoal 2008-03-10
  • 打赏
  • 举报
回复
ADODB.Connection 错误 '800a0e7a'

未找到提供者。可能未被正确安装

这个才是重点,检查连接
wpjwll 2008-03-09
  • 打赏
  • 举报
回复
不一定是你这段代码的问题
==================================

支持楼上的!
pgdoryoku 2008-03-09
  • 打赏
  • 举报
回复
同意楼上,应该是其他代码有问题.
  • 打赏
  • 举报
回复
不一定是你这段代码的问题
lmy0402 2008-03-08
  • 打赏
  • 举报
回复
response.Expires="300"
session.Timeout="900"
response.Charset="gb2312"

dim memberuid,currentTime,conn,connstr
set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=OraOLEDB.Oracle.1;Persist Security Info=True;User ID=hnpy;Password=hnpy;Data Source=bzgl"
'connstr="Provider=MSDAORA.1;;Persist Security Info=True;User ID=hnpy;Password=hnpy;Data Source=bzgl"
'connstr="DSN=bzgl1;uid=hnpy;pwd=hnpy"
conn.open connstr

这样试试。
hookee 2008-03-08
  • 打赏
  • 举报
回复
End 不用管它,是500-100.asp本身的问题
主要问题是未找到提供者
用windows下的管理工具-数据源(ODBC)把连接字符串调试通过。
另外 oracle不在一台机器上的话,检查oracle client是不是安装配置好.
z8h8y8 2008-03-08
  • 打赏
  • 举报
回复
最好把代码都发一下,,,
yanpeng1hao 2008-03-08
  • 打赏
  • 举报
回复
还是不行啊

Microsoft VBScript 编译器错误 错误 '800a03f6'

缺少 'End'

/iisHelp/common/500-100.asp,行242

ADODB.Connection 错误 '800a0e7a'

未找到提供者。可能未被正确安装。

/bzgl/connectDB.asp,行11
z8h8y8 2008-03-08
  • 打赏
  • 举报
回复
response.Expires="300"
session.Timeout="900"
response.Charset="gb2312"

dim memberuid,currentTime,conn,connstr
set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=OraOLEDB.Oracle.1;Persist Security Info=True;User ID=hnpy;Password=hnpy;Data Source=bzgl"
'connstr="Provider=MSDAORA.1;;Persist Security Info=True;User ID=hnpy;Password=hnpy;Data Source=bzgl"
'connstr="DSN=bzgl1;uid=hnpy;pwd=hnpy"
conn.open connstr

这样试试。
sigoal 2008-03-08
  • 打赏
  • 举报
回复
应该不是这里少end吧?

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧