Asp 连接数据库的问题

superxiaomm superxiaomm 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
数据库是Oracle
代码原来是好的,因该是我本地配置的问题
代码里面这样写:
Set DBconn = Server.CreateObject("ADODB.Connection")
DBconn.ConnectionTimeout = 30
Session("ConnectionString") = _
"Provider=OraOLEDB.Oracle.1" & _
";User ID=primsidmanager" &
";Password=xxx" & _
";Data Source=" & Session("Database") & _
";Persist Security Info=True"
DBconn.Open Session("ConnectionString")

然后会报一个Err.Number = 3706 的错 Provider cannot be found. It may not be properly installed.
然后运行SQL就会 Operation is not allowed when the object is closed.

我的Oracle装好了,然后用Vb 写同样的代码,确实可以调用成功, 那位大哥能教教我啊。

...全文
评论 3
收藏 已收藏
分享
返回顶部
superxiaomm
ASP 28,401 成员 356,940 内容