CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Posts
    3

    Visual basic 2008 DB Oracle

    Hello,

    Really a newbie here, with a simple problem (maybe). If you can help I would be really grateful.
    So, the problem is that I want to (SQL) select from a table in an Oracle database, and show the results of the query in the VB application, in a Excel like manner (rows, columns, selectable, etc.). Or in a SQL developer manner.
    Haw can I do that? Browsed through a lot of tutorials and howtos on the internet, did not get anywhere.
    If someone can please help, point me in the right direction, or link a good tutorial, or something, I would be really gratefull.

    Thanx a lot.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Visual basic 2008 DB Oracle

    The actual SQL statements work the same on all systems, but you need to change the connection string to match the provider

    You can find that here: http://www.connectionstrings.com/
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Feb 2009
    Posts
    3

    Re: Visual basic 2008 DB Oracle

    I did manage to connect to the database. The software is already successfully issuing INSERT, UPDATE, and DELETE statements to the database.
    I got stuck when trying to query the database, as I do not know display in my application the result of the query. I suppose it's got something to do with DataGridView (correct me if I am wrong), but I did not manage to successfully create a datatable, a dataset and feed it into a DataGridView programatically.

    Any advices?

    Thanx.

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

Featured