Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

connecting to Oracle database from ASP = please help!

105804Jan 18 2003 — edited Jan 19 2003
i have tried every kind of combination of connection string to connect to a 9i database from ASP but it does not work!

I am using XP Professional and have 9i Developer and ODP.NET installed but I want to use OLE DB (Oracle or Microsoft) to access the database. I have a feeling the web page is not seeing the driver. here is my code:

<% Option Explicit %>
<HTML>
<HEAD><TITLE>Oracle Data Access</TITLE></HEAD>
<BODY>
<%
Dim objConnection
Dim objRecordset
Set objConnection = Server.CreateObject("ADODB.Connection")
With objConnection
.ConnectionString = "Provider=MSDAORA;Data Source=obiwan;" & _
"User ID=user; Password=pass;"
.Open
Response.Write "ADO Provider=" & .Provider & "<BR>"
Set objRecordset = .Execute("SELECT sysdate, user FROM dual")
End With
</body>
</html>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2003
Added on Jan 18 2003
3 comments
289 views