?
Solved

How to connet Oracle 9i using ASP and VB script

Posted on 2003-03-26
4
Medium Priority
?
390 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
  • 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

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

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…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

621 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