Visual Basic.NET
  Home arrow Visual Basic.NET arrow Page 3 - Displaying an Oracle 10G XE Table with Vis...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC.NET

Displaying an Oracle 10G XE Table with Visual Basic 6.0
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 9
    2006-08-22

    Table of Contents:
  • Displaying an Oracle 10G XE Table with Visual Basic 6.0
  • Create a Visual Basic Standard EXE Project
  • Configure the ADODC Data Control
  • Connect the ADO Data Control to the table to be displayed

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Displaying an Oracle 10G XE Table with Visual Basic 6.0 - Configure the ADODC Data Control


    (Page 3 of 4 )

    After you add the control and right click it, you will see a drop-down as shown above. When you click on the ADODC Properties menu item, it pops up a wizard which will guide you to complete the task.

    The wizard comes up with the default tab, General, where one of the most important pieces of information is configured, namely the connection. You need to choose a connection to the database. There are three options out of which we will be using an ODBC Data Source Name, known by its frequently used alias, ODBC DSN. Select this option as shown in the picture and click on the New... button.

    Creating an ODBC DSN

    This brings you to the Create New Data Source window. Again you have three possibilities. Read through the items in the window. We will be using a connection that applies to this machine only, the System Data Source. Click on the button Next.

    This brings up the list of database drivers on this machine that allows you to connect to various databases. We will be using the Oracle XE driver that was registered when Oracle 10G XE was installed. Choose this driver by highlighting it. Then click on the button Next.

    The next window which pops up is just a message as to what you did so far. Click on the button Next.

    This brings up the Oracle ODBC Drive configuration. As usual you need to provide a name for this DSN. Here it is called VB_OraXe. For the TNS (Transparent Network Substrate) Service Name type in the name of the server, XE. The Description refers to the machine on which the sever is running. For UserID, you must use HR, assuming you have established a user of the HR Database by that name. If you have not taken this step, you must do before proceeding further. This is described in the Oracle 10G XE installation manual, or in the online help. You may also read the previous article on the DevShed.com site. You need not configure other items on this window. Click on the OK button to proceed to the next step.

    This brings up the Oracle ODBC Driver Connect window asking for credentials. You just need to type in the password (hr) and click on the OK button.

    Now in the next screen you can click on the drop-down next to Use ODBC Data Source Name and you should be able to find the ODBC DSN just configured, VB_OraXe as shown.

    More Visual Basic.NET Articles
    More By Jayaram Krishnaswamy


       · You are used to VB and you don't care about (.NET) for any number of reasons and...
     

    VISUAL BASIC.NET ARTICLES

    - Create a Sudoku Puzzle Generator using VB.NET
    - Entity Creation and Messaging in a VB.NET Te...
    - Movement and Player Statistics in a VB.NET T...
    - Creating and Drawing a Game Map in VB.NET (F...
    - Working with Classes and Properties for Game...
    - Working with Loops, Arrays, and Collections ...
    - Learning Loops in VB.NET for Game Development
    - Learning VB.NET: Working with Variables, Con...
    - The Basics of VB.NET Through Text Game Devel...
    - Learning VB.NET Through Text Game Development
    - Types of Operators in Visual Basic
    - Operators
    - Understanding Custom Events using Visual Bas...
    - Polymorphism using Abstract Classes in Visua...
    - Shadowing using Shadows in Visual Basic.NET ...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway