View Poll Results: How do you like VB.NET

Voters
9. You may not vote on this poll
  • A lot

    6 66.67%
  • Somewhat

    2 22.22%
  • Neutral

    1 11.11%
  • You don't want to know

    0 0%
Results 1 to 9 of 9

Thread: Connecting to an Oracle Database

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Posts
    5

    Connecting to an Oracle Database

    Hello All,

    I am very new with VB.NET and I would appreciate your helping me with this problem.

    I am trying to create a DataForm which will connect to an Oracle database on the server at work. Even though the connection was successful while tested, VB will not allow me to connect to the Oracle database by saying:

    "It is only possible to connect to SQL Server Desktop Engine databases and Microsoft Access databases with this version of Visual Studio"

    I currently have VB.NET standard edition on my PC and I was trying to connect to Oracle through OLE DB drivers.

    I'm just wondering if there is another way I can try or if you know of any sure way to connect to a database other than SQL Server and MS Access. Thank you very much for your help.

    Bruce

  2. #2
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Question

    It's weird that you ask a poll question that is different than your thread topic.
    ~Peter


  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Posts
    5
    Hello MRGTI,

    I am also very new to this forum thing and I have not a clue how to turn off the poll thing. Sorry.

    Bruce

  4. #4
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Bruce,

    Are you using the visual database tools? Wizards, datasource controls etc.? From what I've read (I have enterprise architect to don't know for sure) you can still connect to whatever DB you want as long as you do it entirely through code. If you wish to use the visual DB tools, then you need to give Mr. Gates some more money.

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Posts
    5
    Hello Mike,

    Yeah, I was trying to connect through the DataForm Wizard. I will try to explore the code option then. Do you have any pointers for me as for what kind of connect method I should be using? Should I staick with OLE DB or should I try something else?

    Thanks.

  6. #6
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    You know, I don't use Oracle, I do MSSQL, so can't offer advice on which is best. I'd use the more modern thing, though - what is it? ODP.NET? over OLE DB or ODBC. That's just my personal preference, though, stay modern.

  7. #7

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Posts
    5
    Thank you very much for your help. I haven't even heard of ODP.NET, I guess I have a lot of work ahead of me. Thanks again!

  8. #8
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    If you right-click on your project in the Solution Explorer in Visual Studio.... and select Add Reference...

    Under the .Net tab, you should find the System.Data.OracleClient library.... select it, click Ok, and then you will be able to use it.


    "This article is a discussion of how to access Oracle stored procedures (named SQL programming blocks) and functions (which are programming blocks that return a single value) using ADO.NET.

    This article uses the Microsoft® .NET Framework data provider for Oracle. Different functionality is available using the Oracle ODP.NET data provider or the Microsoft .NET Framework data provider for OLE DB.

    The Oracle .NET data provider ships with the .NET Framework 1.1. If you are using .NET Framework 1.0, you will need to download the .NET Managed Provider for Oracle. For either version, the data provider classes are located in the System.Data.OracleClient namespace."

    http://msdn.microsoft.com/library/de.../msdnorsps.asp

  9. #9

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Posts
    5
    Hello nemaroller,

    Thank you very much for your help. I have written a very simple program to connect to the Oracle database and everything seemed to be working out just great.

    Thanks.... Bruce

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