i'm searching for a way to export some MySql tables into other tables of a MsAccess DB (I'm talking about a million records table...)
the only two way that I thought about are:
export from myadmin or toad a csv file and then import it into the access DB.
making directly from Toad the "Access Database Export"
I'm getting that the first is more fast but less secure for the data integrity, while the second is perfect for the data integrity but very slow ... someone knows other ways?
Thanks A.
If you have ODBC access to MySQL, and your server is on your network, you can import its tables from within Access. I think the menu selections are "File | Get external data | Import".
For "Files of type", select "ODBC Databases". You might need to create a new DSN name.
I can't recall whether ODBC drivers are generally an installation default, or whether they're a separate install. I think they're installed by default, but I could be wrong.
step by step guide to running Access frontend application with MySQL database on webserver (you dont need to IMPORT the tables, you can use your msaccess application WITH them on the webserver):
If you are running MsAccess, i suppose that you are using windows
depending on your server, you might have some difficulty finding the server name or IP, look for SSH Database connection (or something like that). as an example, read NetSol's FAQ: http://www.networksolutions.com/support/how-to-back-up-the-mysql-database-using-ssh/
once you have done that, in MsAccess: 1. FILES 2. EXTERNAL DATA SOURCE 3. LINK TABLES
if you want to EXPORT to MySQL from MsAccess, you can create a FORM in access, put a button on it, and in VBA create this sub for the OnClick() event:
sometimes, while running non-english windows you might get error 2507, change "ODBC Database" for "ODBC" (works with French).
Thanks tony for that awesome time-saving script. Since I name my tables with the prefix "tbl", I modified the code so it will only export those tables (not the weird looking ones):