Hi all,
I'm trying to export a HSQL database to an MS Access database from scratch. Since I can't create the MDB file from scratch, I copy an empty file to the desired location, connect to it. My plan is to go through the records from one DB and replicate them in the other.
Up to the connection, everything is fine. But executing the schema on the new database causes problems.
The problem is that the script created by SchemaExport is not OK with MS Access, as it doesn't seem to accept the schema prefixes, e.g:
Code:
alter table DOCUMENTATION_LINK add constraint FK9038F67F935DD51B foreign key (DOCUMENTATION_ID) references [b]PUBLIC.PUBLIC.DOCUMENTATION[/b]
This makes the Access driver complain:
Quote:
GRAVE: [Microsoft][ODBC Microsoft Access Driver] Could not find file 'D:\tmp\new SDF software\javaApp\SDF_Manager\PUBLIC.PUBLIC'
There's a workaround to the schema creation on Access: recuperate the script through generateCreateSchemaScript() and remove the PUBLIC.PUBLIC before executing them through JDBC statements. However when replicating the objects it stumbles upon the same issues.
So my questions:
1) Is there a way to remove the Schema notation (PUBLIC.PUBLIC) and make Hibernate work without? (Btw, why PUBLIC.PUBLIC - 2x - instead of PUBLIC?)
2) Should I continue trying to achieve this with Hibernate or should I resort to using JDBC and do the data dump manually? I'm kind of at a loss and time is flying!
Any help very welcome!
djones