Asp 连接数据库的问题
数据库是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 写同样的代码,确实可以调用成功, 那位大哥能教教我啊。
代码原来是好的,因该是我本地配置的问题
代码里面这样写:
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 写同样的代码,确实可以调用成功, 那位大哥能教教我啊。
...全文
相关推荐
ASP连接SQL Server数据库的问题研究.pdf
ASP连接SQL Server数据库的问题研究.pdf
ASP连接多种数据库服务器的方法及关键问题
ASP连接多种数据库服务器的方法及关键问题,配图,分析全面
在数据库‘master’中拒绝CREATE DATABASE权限问题的解决方法
今天使用Linq To SQL,要求判断数据库是否存在,不存在是自动创建数据库。
ASP技术常遇问题解答-如何建立MYSQL数据库的连接?.zip
ASP技术问题解答,希望对你有帮助。
Win7 ASP连接数据库“未找到提供程序.该程序可能未正确安装”问题
今天调试了基于Access数据库的ASP应用,没想到IIS7报错,提示ADODB.Connection 错误 '800a0e7a' 未找到提供程序。该程序可能未正确安装


