?
Solved

How to connet Oracle 9i using ASP and VB script

Posted on 2003-03-26
4
Medium Priority
?
387 Views
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 (9.0.1.1.1) database.  Can somebody help me, if can give me in detail or source code.  Thanks very much!
0
Comment
Question by:tonyckx
[X]
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
4 Comments
 
LVL 15

Expert Comment

by:gladxml
ID: 8215166
tonyckx,

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

http://www.able-consulting.com/MDAC/ADO/Connection/ODBC_DSNLess.htm
0
 
LVL 15

Expert Comment

by:gladxml
ID: 8215176
tonyckx,

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

http://www.simongibson.com/intranet/adooledb/adooledb.html
0
 
LVL 15

Expert Comment

by:gladxml
ID: 8215194
tonyckx,

below is a tutorial on databases using ado and sql

http://www.w3schools.com/ado/

http://www.w3schools.com/sql/

Hope this help...

HAppy programming
0
 

Accepted Solution

by:
Mckenzma earned 500 total points
ID: 8227060
tonyckx,

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:
http://www.vbxml.com/conference/wrox/1999_dc/text/dov.asp

Good luck!

mckenzma
0

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