-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Creating a SchemaExport for MS Access: problems
PostPosted: Tue Dec 14, 2010 11:09 am 
Newbie

Joined: Tue Dec 14, 2010 10:49 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.