kondakindi
IS-IT--Management
hi all,
I am new to asp. I need to connect to an oracle database which is on the same system as the IIS. I wrote the following code for it
<%
dim conn,rs
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider = MSDAORA;User ID=admin;Password=admin;Data Source=myodbc;DATABASE=test;"
Set rs = server.CreateObject("ADODB.Recordset")
rs.open "select * from users",conn
while not rs.eof
response.write(rs.fields(0) & "," & rs.fields(1))
wend
%>
on running this code i am getting this error..
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
/test.asp, line 13
i dont where i am going wrong... plz help me with this
Thanks
I am new to asp. I need to connect to an oracle database which is on the same system as the IIS. I wrote the following code for it
<%
dim conn,rs
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider = MSDAORA;User ID=admin;Password=admin;Data Source=myodbc;DATABASE=test;"
Set rs = server.CreateObject("ADODB.Recordset")
rs.open "select * from users",conn
while not rs.eof
response.write(rs.fields(0) & "," & rs.fields(1))
wend
%>
on running this code i am getting this error..
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
/test.asp, line 13
i dont where i am going wrong... plz help me with this
Thanks