Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 7th, 2004, 05:43 AM
Authorized User
 
Join Date: Sep 2003
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?

Thanks,
Pankaj

 
Old July 7th, 2004, 08:03 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Try This

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


Om Prakash
 
Old July 12th, 2004, 03:43 PM
Registered User
 
Join Date: Jul 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try this

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








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





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