|
-
Aug 6th, 2007, 01:37 AM
#1
Thread Starter
Hyperactive Member
[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
-
Aug 6th, 2007, 02:05 AM
#2
Registered User
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.
-
Aug 6th, 2007, 02:17 AM
#3
Thread Starter
Hyperactive Member
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.
-
Aug 6th, 2007, 06:50 AM
#4
Thread Starter
Hyperactive Member
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
-
Aug 7th, 2007, 12:06 AM
#5
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|