How to connet Oracle 9i using ASP and VB script

Posted on 2003-03-26
Medium Priority
Last Modified: 2012-08-13
I create a database call TestDB.  in my database i have 4 table, login, userinfo, subject and systeminfo.  i already setup my IIS (Internet information Server) as my web server.  So how i want connect asp and VB script to Oracle 9i ( database.  Can somebody help me, if can give me in detail or source code.  Thanks very much!
Question by:tonyckx
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 15

Expert Comment

ID: 8215166

Below is a link that might help... DSN less Connection string using odbc

LVL 15

Expert Comment

ID: 8215176

This might help also... DSN less connection using OLEDB...

LVL 15

Expert Comment

ID: 8215194

below is a tutorial on databases using ado and sql



Hope this help...

HAppy programming

Accepted Solution

Mckenzma earned 500 total points
ID: 8227060

Here's something you can use. This will allow you to connect using the tnsnames.ora database instance name setup on your machine (I'm assuming that Oracle 9 still uses this methodology...)

Public db
Public uname
Public pwd
db="{Oracle Instance Name}"
uname="{Your User Name}"
pwd="Your Password"

Dim strSQL
Public YourDynaset
Public Sess
Public Yourdb,Oracle

Set Sess = CreateObject("OracleInProcServer.XOraSession")
Set Yourdb = Sess.DbOpenDatabase(db, uname&"/"&pwd, 0)

strSQL = "SELECT *  FROM YourTable WHERE YourFieldName = " & CHR(39) & "YourCriteria" & CHR(39)
Set YourDynaset = nothing
Set YourDynaset = Yourdb.CreateDynaset(strSQL,0)

Take a look at this for more reference:

Good luck!


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question