Results 1 to 5 of 5

Thread: [2005] Copy Data From Access 97 tbl to MySQL tbl

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395

    Question [2005] Copy Data From Access 97 tbl to MySQL tbl

    Greetings,

    how can i copy Fields from an Access 97 table to an MySQL table

    i tried different thinks like
    Code:
    INSERT INTO DB1.Tbl 
       (f1, f2, f3)
          SELECT f1, f2, f3 FROM DB2.Tbl
    but i could not figure out how to code it properly.

    I use for accessing the Access97 DB - System.Data.OleDb
    and for MySQL - MySql.Data.MySqlClient

    Many thx in advance

  2. #2
    Registered User RaviIntegra's Avatar
    Join Date
    Mar 2007
    Location
    Pondicherry, India
    Posts
    125

    Re: [2005] Copy Data From Access 97 tbl to MySQL tbl

    You can easily copy fields to your sql.

    First load all tyou fields from you Access table into a listbox or listview.

    Now write a query to create a table using this loaded fields.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395

    Re: [2005] Copy Data From Access 97 tbl to MySQL tbl

    @RaviIntegra
    first thanks for your idea. I tried this allready but it takes to long. We talking about around 20.000 records per table and i have to do this on 3 tables.

    I was reading in the in a simelar topic (http://www.vbforums.com/showpost.php...92&postcount=5) that it is faster to copy the records directly.

    So what i need is the direct way.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395

    Re: [2005] Copy Data From Access 97 tbl to MySQL tbl

    Tried a different approach.

    Getting the Datas from Access to a DataTable

    Getting the Strukture from the MySQL table into another DataTable

    Copy Access.DataTable to MySQL.DataTable

    AcceptChange on MwSQL.DataTable

    But still no luck

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395

    Re: [2005] Copy Data From Access 97 tbl to MySQL tbl

    Any other idea how this is possible to solve this?

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