Intranet Server : NT4/IIS4
Database : Oracle
I tried to access an Oracle Database through a system DSN set-up on the server (Microsoft Oracle driver) an get the
3265 ADO error message :
"Item cannot be found in the collection corresponding to the requested name or ordinal."
When I run the same program on my local W2K machine ( it works fine but not when run from the server ( The DSN has been set up the same way on both machines then pointing to the same database, so no tables/fields mistypes involved.
here is my script :
<%@ Language=VBScript%>
<!--#include virtual="/adovbs.inc"-->
<HTML>
<HEAD><TITLE>ASP CONNECTION TRIAL</TITLE></HEAD>
<BODY>
<%
ON ERROR RESUME NEXT
Set objConnection = Server.CreateObject("ADODB.Connection"
objConnection.Open "DSN=SGQS; UserId=sgqs; pwd=toto"
Set oRS=Server.CreateObject("ADODB.recordset"
SQL = "Select * from PILOTE"
oRS.Open SQL, objConnection
oRS.Movefirst
Response.Write oRS.Fields("CDPILOTE" & "<BR>"
Response.Write SQL & "<BR>"
IF err.Number <>0 then
response.write "Number : " & err.Number & "<P>"
response.write "Descr : " & err.description & "<P>"
response.write "Source : " & err.source & "<P>"
err.clear
end if
oRS.Close
set oRS=Nothing
objConnection.Close
set objConnection=Nothing
%>
</BODY>
</HTML>>
Database : Oracle
I tried to access an Oracle Database through a system DSN set-up on the server (Microsoft Oracle driver) an get the
3265 ADO error message :
"Item cannot be found in the collection corresponding to the requested name or ordinal."
When I run the same program on my local W2K machine ( it works fine but not when run from the server ( The DSN has been set up the same way on both machines then pointing to the same database, so no tables/fields mistypes involved.
here is my script :
<%@ Language=VBScript%>
<!--#include virtual="/adovbs.inc"-->
<HTML>
<HEAD><TITLE>ASP CONNECTION TRIAL</TITLE></HEAD>
<BODY>
<%
ON ERROR RESUME NEXT
Set objConnection = Server.CreateObject("ADODB.Connection"
objConnection.Open "DSN=SGQS; UserId=sgqs; pwd=toto"
Set oRS=Server.CreateObject("ADODB.recordset"
SQL = "Select * from PILOTE"
oRS.Open SQL, objConnection
oRS.Movefirst
Response.Write oRS.Fields("CDPILOTE" & "<BR>"
Response.Write SQL & "<BR>"
IF err.Number <>0 then
response.write "Number : " & err.Number & "<P>"
response.write "Descr : " & err.description & "<P>"
response.write "Source : " & err.source & "<P>"
err.clear
end if
oRS.Close
set oRS=Nothing
objConnection.Close
set objConnection=Nothing
%>
</BODY>
</HTML>>