473,396 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Basic Oracle Connection Question

15
Hi there,

I have made a few bit of code in VBA in the past connecting to Access databases but this is my first attempt to connect to an Oracle DB. My code is as follows, and it seems to fall down at the point of populating the recordset. The equivalent code works fine using an Access connection, hence I'm a bit stumped.

Expand|Select|Wrap|Line Numbers
  1. Public Sub oracleconnect()
  2.  
  3. Set cn = New ADODB.Connection
  4. Set rs = New ADODB.Recordset
  5.  
  6. stringConnection = "Driver={Microsoft ODBC for Oracle};Server=MISSYSP;Uid=MISSYS;Pwd=******;"
  7. stringSQL = "SELECT * FROM MISSYS.BWADDITIONALCOPY"
  8.  
  9. cn.Open stringConnection
  10. rs.Open stringSQL, cn
  11.  
  12. cn.Close
  13.  
  14. Set cn = Nothing
  15. Set rs = Nothing
  16.  
  17. End Sub
I'm getting a useful 'unspecified error'. Please can anyone suggest anything? As for the error message, is there any way of getting a bit more useful info?

Cheers
Ashwah
Dec 19 '07 #1
1 1258
debasisdas
8,127 Expert 4TB
The problem might be with the driver you are using. Try to use oracle driver.
Dec 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Julia Sats | last post by:
I try to Data connection to oracle DB in new application and every time I get the same error: ORA 12154 I us Microsoft Ole DB Provider for Oracle and I have Oracle 9.2 but if I use connect to the...
0
by: JWM | last post by:
I am trying to implement Oracle connection pooling for the following code, which was written by someone else. Here is my main question -- this java file creates code that is executed every hour,...
3
by: FC | last post by:
Hello all: I have a very basic question about oracle database structures. I am coming from MS SQLServer where I have three "databases", each database has three "tables". I can access any table...
1
by: Tom Rahav | last post by:
Hello all! I develop application in Visual Basic .NET and ORACLE database. My question is how do I "send" script file to the database using visual basic .net. Other words, is there any way to...
3
by: Alex Chan | last post by:
Hi All, I know this might not be an appropriate newsgroup for this question. I have tried to search in OTN but seems no good solution exists. Just see any developers face similar problem before...
2
by: Steve Foo | last post by:
I have been posting this question in google group, EE, and Oracle OTN forum and still no cannot find a suitable solution for it. I have contacted Singapore Microsoft support regarding the problem...
5
by: Amueerie | last post by:
this may seem a trivial question (as .net may have been solely developed for this purpose), but i'm not certain whether this is possible, i.e. is it possible to access an Oracle DB in .NET (and...
5
by: Microsoft | last post by:
Hi, I have Visual Basic .net 2003 (Standard Edition) & SQL Server 2000 Developer Edition. When trying to create a connection in the server explorer from the .net IDE I get a number of problems;...
19
by: Gregor =?UTF-8?B?S292YcSN?= | last post by:
Hi! I'm using DB2 database on one server and ORACLE database on the second one. I want to move some data from ORACLE database to DB2 database and update some columns on ORACLE database so I know...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.