Results 1 to 3 of 3

Thread: Connect to Oracle database using VB 6.0

  1. #1
    Join Date
    Dec 2008
    Posts
    10

    Connect to Oracle database using VB 6.0

    Hello Friends,

    I have created an Oracle database, and I'd like to be able to write a VB6 front-end for it.
    Does anyone know if you can use VB6 to connect to an Oracle db, and if so, do you know of any simple step-by-step examples that a newbie like myself could use to learn how to do it?

    Thanks...

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: Connect to Oracle database using VB 6.0

    Try to use "Microsoft OLE DB Provider for Oracle" (in DataLink Properties),
    then "Next>>" command button, and in "Enter a server name" you should have something like "T101" (your Oracle server name) and User name and password, if needed.
    Just to connect your DataEnvironment to your Oracle DB.

    In code in VB 6, to connect to your Oracle DB, you should have a connection string something like:

    Code:
    strCn = "Driver={Microsoft ODBC for Oracle};" & _
                "SERVER=T101;UID=MyID;PWD=MyPassWd"
        Set Cn = New ADODB.Connection
        Cn.ConnectionString = strCn
        Cn.CursorLocation = adUseNone
        Cn.Open

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Connect to Oracle database using VB 6.0

    For more information about the database connectivity, you just go through with this,

    http://www.johnsmiley.com/cis18/Smiley004.pdf

    Hope, this will help you.

Similar Threads

  1. Connect To Remote Oracle Database with Toad
    By Eashta^devata in forum Software Development
    Replies: 2
    Last Post: 30-08-2011, 11:09 PM
  2. The synonyms in oracle database
    By Norse in forum Software Development
    Replies: 4
    Last Post: 02-02-2010, 10:46 PM
  3. Different processes in oracle database
    By Aileen_L in forum Software Development
    Replies: 4
    Last Post: 01-02-2010, 04:38 PM
  4. Managing oracle 9i Database
    By Landan in forum Software Development
    Replies: 3
    Last Post: 21-01-2010, 11:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,038,520.11583 seconds with 16 queries