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 写同样的代码,确实可以调用成功, 那位大哥能教教我啊。