Results 1 to 5 of 5

Thread: ms access to oracle

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    ms access to oracle

    hello!
    i have data in ms access (.mdb) i want to transfer the data
    in oracle how would i do that?

    tnx
    *****************
    VB6,PHP,VS 2005

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: ms access to oracle

    How do you get data from Access? Use a DataAdapter to populate a DataTable. How do you get data into Oracle? Use a DataAdapter to insert the contents of a DataTable.

    You only need one DataTable, because it doesn't care where the data comes from or goes to. You only need one DataAdapter too, assuming you have an OLEDB provider for Oracle installed. You just need two Connections: one each for the SelectCommand (Access) and the InsertCommand (Oracle).

    Just make sure you set the AcceptChangesDuringFill property of the DataAdapter to False. That way the RowState of each DataRow will remain Added and they will each get inserted into the Oracle database when you call Update.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: ms access to oracle

    ok, i'll remember now. thank you
    *****************
    VB6,PHP,VS 2005

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: ms access to oracle

    Is this something that you are going to need to do on an ongoing basis?

    If so, then I can see the need for writing code for it. However, if this is just a one time data migration thing, then doing a direct import using Oracle tools would seem a simpler approach.

  5. #5
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: ms access to oracle

    If this is a one off run it is probably easiest to connect directly to Oracle from MS Access (using ODBC) and placing the data where you want it.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

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