I created file DSNs to both an Access 97 and an Access 2003 database. In each of these databases, I went to Tools > Options >View, and enabled Show > System Objects.
Using SQLyog's Migration Toolkit, I connected to each in turn, selected one small table for import, and tried it. Each test failed. In both cases the log simply shows:
Job started at Thu Jun 07 13:31:29 2007
ERROR:
ERROR: Import aborted…
As a newbie looking to migrate an Access application to the web using PHP and MySQL, I was looking forward to using a tool that would do the Access data import (and save the import specs) … but that log file wasn't much help.
I've no idea where to start. Any suggestions would be appreciated.
Please tell the SQLyog version and also please try SQLyog6.02 RC, if you get same error please attach the sample access.mdb file here which is giving error.
I bought the Enterprise version today, especially for the import and other extra features. It is version 6.01. How would I get the version you mention?
Oops, sorry, should have followed your link first. Have downloaded 6.02RC, will try.
Tried changing the table type from InnoDb to MyIsam. Same failure.
Turned on the ODBC trace, and had a squizz at the log, but I don't know what to make of it. One thing that caught my eye though, was the string “select * from `Trades` where 1=0”. Doesn't look right to me…. I didn't add a WHERE to SQLyog, and “where 1=0” looks pretty strange.
Just in case the log file might help, I've attached it.
I think that SJA cannot access the .mdb file and that is why SJA will have to abort the job.
An access database is a 'flat file database' – no 'server proces' need to be running to read the data.
However we can import too when the database is open is access, but that may depend on the security settings in access itself and what you are doing.
So please start ensuring that no other program accesses the database file while importing. Also verify that there is no security setting in the database file/folder preventing the actual user to access it (in case 'simple file sharing' is turned off).
I think that SJA cannot access the .mdb file and that is why SJA will have to abort the job.
It seems that the SJA is accessing the .mdb OK, as it displays the available tables etc. So that rules out permission based problems (I think), and problems with access to the file (in use, etc).
The ODBC trace log shows that SQLyog is running, and that it looks like it is working (success messages). Not that I'd actually know though!
So *if* we assume that SQLyog got as far as running ODBC calls *OK*, what happens next that could fail?
Just had a thought… would you be able to turn on ODBC Trace, do that import to MySQL again, and attach the log for me? Maybe I can spot a difference between my log and yours?
I've been using a file DSN for both MySQL, and the Access db I was trying to import. Found I couldn't link MySQL tables to Access using a file DSN, it seems to connect AOK, but the list of tables in Access's Link dialog was empty. I then tried a User DSN, and this worked.
So I tried this to import the Access tables. Created a User DSN for the Access db, and retried the import into MySQL. After selecting “Import tables…”, SQLyog threw an error on every table:
[Microsoft][ODBC Microsoft Access Driver] Query support unavailable.
After the errors had finished, the list of tables was displayed and I continued, but I found that it imported only the table definitions, without any data.
Back again, I'm sorry, with the same sort of problem. Since my previous posts, I've bought a new workstation, software details are:
Windows: XP SP2
SQLyog: 6.16
Access ODBC driver: 4.00.6304.00
MDB version: Access 2000
ODBC DSN type: User
Symptoms:
Using the Migration Toolkit, after selecting 'Copy table(s) from data source', I first get a msg 'The underlying database seems to be Microsoft Access. To correctly import…'
I click to continue.
Next, another msg pops up '[Microsoft][ODBC Microsoft Access Driver] Query support unavailable.' Click . The same msg appears for second time, click again.
All table schemas are successfully imported, but no data.
This is driving me nuts, can anyone suggest what I might try?
Back again, I'm sorry, with the same sort of problem. Since my previous posts, I've bought a new workstation, software details are:
Windows: XP SP2
SQLyog: 6.16
Access ODBC driver: 4.00.6304.00
MDB version: Access 2000
ODBC DSN type: User
Symptoms:
Using the Migration Toolkit, after selecting 'Copy table(s) from data source', I first get a msg 'The underlying database seems to be Microsoft Access. To correctly import…'
I click to continue.
Next, another msg pops up '[Microsoft][ODBC Microsoft Access Driver] Query support unavailable.' Click . The same msg appears for second time, click again.
All table schemas are successfully imported, but no data.
This is driving me nuts, can anyone suggest what I might try?
HI,
This message pops each time you select a query( message/query selected to migrate)
can you please tell,
Are you able to migrate properly if tables only used ?
Please check the permissions for tables and queries ?
I am selecting 'Copy table(s) from data source' – not using queries. As per the link you provided, I have given the default Admin user and the Admins group full administration permissions to the 5 system tables, but it hasn't made any difference.
During the migration, the status window shows each table schema being successfully imported, but at the end the msg '[Microsoft][ODBC Microsoft Access Driver] Query support unavailable.' is repeated.
I've given up trying the migration with SQLyog Enterprise. I used Graycode's suggestion of the Bullzip 'Access To MySQL' product at http://www.bullzip.com/products/a2m/info.php. It worked AOK.
During the migration, the status window shows each table schema being successfully imported, but at the end the msg '[Microsoft][ODBC Microsoft Access Driver] Query support unavailable.' is repeated.
The error is mentioned here but with not much additional info:
… but I think that the error “query support not avail” means that it was not possible to retrieve data for a “stored query” (or a VIEW if you like). VIEWs fromcan be imported to a table on . But if the driver fails to retrieve the data I think this error occurs. I have done that with Access2000 without problems however, but there might be problems with some specific “stored queries”. Or maybe JET version on that system was not able to handle that file?