Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 7th, 2004, 05:43 AM
Authorized User
Join Date: Sep 2003
Location: , , .
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default oracle connection string

Hi everyone,

How can I specify a connection string for an Oracle database without a DSN. I want to use the Oracle driver. However, I cannot figure out how to specify it.

I know I can specify it to use the Microsoft driver as:
Driver={Microsoft ODBC for Oracle}; Server=server.db; Uid=name; Pwd=pass;

However, my stored procedures do not work with this driver. I would like to use the Oracle driver. What is the driver connection string for using it?


  #2 (permalink)  
Old July 7th, 2004, 08:03 AM
Friend of Wrox
Points: 2,473, Level: 20
Points: 2,473, Level: 20 Points: 2,473, Level: 20 Points: 2,473, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: May 2004
Location: India
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts

Try This

' Oracle Provider
   con1.Open "PROVIDER=MSDAORA;" & _
             "DATA SOURCE=MyOracleServer;" & _
             "USER ID=demo;PASSWORD=demo;"

Om Prakash
  #3 (permalink)  
Old July 12th, 2004, 03:43 PM
Registered User
Join Date: Jul 2004
Location: Los Angeles, CA, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

try this

Conn.Open "Provider=OraOLEDB.Oracle;Data Source=MyOraDB;User Id=demo;Password=demo"


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
oracle connection string in many databasee nandar_hayhay Oracle 1 July 4th, 2008 04:26 AM
connection string to Oracle, Invalid Argument,err sparsh2010 Access VBA 1 February 14th, 2008 08:31 AM
Oracle connection string asmaa ASP.NET 2.0 Professional 0 July 17th, 2007 05:42 AM
oracle connection silvia C# 4 January 17th, 2006 08:12 AM
Connection string to Oracle Database phudong3da Dreamweaver (all versions) 2 May 2nd, 2005 07:13 PM

All times are GMT -4. The time now is 04:29 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.