|
-
Sep 28th, 2004, 01:08 PM
#1
Thread Starter
Frenzied Member
A little help with an oracle connection please
I am trying to connect to an oracle server now.. When I look it up on the MSDN sire I get this page..
MSDN
Which tells me to add this:
VB Code:
System.Data.OracleClient.OracleConnection
The only problem is that VB does not like that.. I get a squiggly line under it and can not build it.. What am I missing??
Rudy
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
-
Sep 28th, 2004, 04:58 PM
#2
Frenzied Member
Did you add the reference?
-
Sep 28th, 2004, 07:38 PM
#3
Thread Starter
Frenzied Member
Originally posted by Mike Hildner
Did you add the reference?
Which one? Nothing I have read so far tells me what reference to add...
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
-
Sep 28th, 2004, 08:49 PM
#4
Frenzied Member
I don't use Oracle these days, but the .NET idea is the same. I'm guessing you need to add the Oracle reference to your project. As in right-click on the References node in the Solution Explorer... Add Reference, blah blah blah. That's what I mean by "did you add the reference".
Of course, the original code you posted isn't valid anyway. Can you post more code, or be specific about the "squiggly line". I know what squiggly lines are, but the specific message is helpful. When you build it, what is the *specific* error message? Details are good.
-
Sep 28th, 2004, 11:52 PM
#5
You'll need to install the Oracle drivers, I suppose.
-
Sep 29th, 2004, 07:19 AM
#6
Thread Starter
Frenzied Member
Originally posted by Mike Hildner
I don't use Oracle these days, but the .NET idea is the same. I'm guessing you need to add the Oracle reference to your project. As in right-click on the References node in the Solution Explorer... Add Reference, blah blah blah. That's what I mean by "did you add the reference".
Of course, the original code you posted isn't valid anyway. Can you post more code, or be specific about the "squiggly line". I know what squiggly lines are, but the specific message is helpful. When you build it, what is the *specific* error message? Details are good.
The code I posted was exactly link in the MSDN example (with the exception of a missing "Imports" in front of it)..
The error I get is:
C:\Documents and Settings\Me\My Documents\Visual Studio Projects\VS .NET 2003\Visual Basic\WindowsApplication2\Form1.vb(1): Namespace or type 'OracleClient' for the Imports 'System.Data.OracleClient' cannot be found.
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
-
Sep 29th, 2004, 07:20 AM
#7
Thread Starter
Frenzied Member
Originally posted by mendhak
You'll need to install the Oracle drivers, I suppose.
I have the drivers installed.. I use Access and SqlPlus all the time to access the Oracle servers..
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
-
Sep 29th, 2004, 09:25 AM
#8
Frenzied Member
You need to add the reference to OracleClient before you can successfully use the Imports statement.
In the solution explorer, right click references, choose add reference, then, on the .NET tab, double click System.Data.OracleClient.dll, then click ok.
-
Sep 29th, 2004, 09:51 AM
#9
Thread Starter
Frenzied Member
Originally posted by Mike Hildner
You need to add the reference to OracleClient before you can successfully use the Imports statement.
In the solution explorer, right click references, choose add reference, then, on the .NET tab, double click System.Data.OracleClient.dll, then click ok.
ahhh.. That is what I have been looking for.. Thanks! You have just curred one of my biggest headaches of the month.. 
Wonder why that is not referenced anyplace on MSDN...
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|