Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to connect to Oracle DB using VBScript & ADO?? 1

Status
Not open for further replies.

qajussi

Programmer
Mar 22, 2004
236
0
0
US
Hi!

Can you help me?

How to connect to Oracle DB using VBScript & ADO??
I have oracle 9i database and connect to the database and do some record extraction using the vbs/ado.

Can you show me some sample code?

Thank you millions in advance.

Philip
 
Hi,
Here is one way, using a DSN-less method:

Code:
<%
' Create and establish data connection
Set objDC = Server.CreateObject("ADODB.Connection")
objDC.ConnectionTimeout = 15
objDC.CommandTimeout = 30
'Code to connect to Oracle 
 objDC.Open "Provider=MSDAORA.1;Password=secret;User ID=usr;Data Source=yourtnsnames.ora entry;Persist Security Info=TRUE"
%>


Hope it helps..
[profile]
 
Thank you very much.
I see how you did it.

That works..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top