Results 1 to 9 of 9

Thread: A little help with an oracle connection please

  1. #1

    Thread Starter
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519

    Question 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:
    1. 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".

  2. #2
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Did you add the reference?

  3. #3

    Thread Starter
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519
    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".

  4. #4
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    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.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    You'll need to install the Oracle drivers, I suppose.

  6. #6

    Thread Starter
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519
    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".

  7. #7

    Thread Starter
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519
    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".

  8. #8
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    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.

  9. #9

    Thread Starter
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519
    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
  •  



Click Here to Expand Forum to Full Width