Book a Demo

Author Topic: Importing an Access Database  (Read 6996 times)

mhadd

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Importing an Access Database
« on: May 08, 2007, 08:35:43 am »
A customer has given me an Access database.  I am attempting to import the schema into EA.  However, every time I try, I receive an error message stating "Database could not be opened".  The database did have a password which I removed.  That did not work.  I then created a new database and imported the tables from the first database.  I received the same error message.  Any clues as to what I can try next?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Importing an Access Database
« Reply #1 on: May 08, 2007, 10:44:55 am »
How are you doing this?

Through Windows, try creating an ODBC or OLEDB data source to open the Access table. During the process you should be given an opportunity to test the connection. If that passes, then use save the data source, again using the Windows dialogs.

Once you've done the above, try using this data source for your import.

David
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Importing an Access Database
« Reply #2 on: May 08, 2007, 12:56:53 pm »
Don't forget to check you're using the right version of the JET engine.  What version of Access can you use to successfully open the client's database?

you may need to use Jet 4.0.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

mhadd

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing an Access Database
« Reply #3 on: May 08, 2007, 12:59:48 pm »
I read some earlier posts and so am using Jet 4.0.  I had created and ODBC connection.  I deleted the one I had installed and installed another one but was never given the option to test the connection.  I am still receiving the same error message.  I am using Microsoft Access 2003, SP2.  I can able to view the tables when I open them in Access.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Importing an Access Database
« Reply #4 on: May 08, 2007, 04:01:39 pm »
Access 2003 may not be supported.  Perhaps the Sparxians can confirm.  See if you can save the DB as Access 2000...

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

mhadd

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing an Access Database
« Reply #5 on: May 09, 2007, 05:16:26 am »
Well, I tried that as well.  Maybe the database is possessed. ???

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Importing an Access Database
« Reply #6 on: May 09, 2007, 10:05:30 pm »
I am not aware of any issues with reverse engineering Access 2003 databases.  As long as you have JET 4.0 enabled and have defined the connection correctly, I can't think of any reason why it might fail.  If you can send us a zipped copy of the database to [email protected] (along with a description of the problem) we will see what we can do to help.

karl

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing an Access Database
« Reply #7 on: June 03, 2007, 08:57:19 am »
Hi, I had the same problem running EA6.5 on a new installed Win XP, Office (Access) 2003, ODBC is Version 4.xx, so everything seems ok from the software-side.

The solution was in EA itself (running with JEt 3.5x by default). Choose in the menu Tools-Options-> mark the checkbox "Use JET 4.0" and restart EA.

Karl
« Last Edit: June 03, 2007, 09:05:13 am by karl »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Importing an Access Database
« Reply #8 on: June 03, 2007, 09:14:05 am »
Quite correct Karl.

And my apologies to mhadd on this. I definitely should have led off with this, considering the number of times I've suggested that fix in the past. I just didn't think of it, since it's become automatic for me.

Once again this brings up the need for a (comprehensive) Sparx FAQ site, preferably attached to this forum.

It also reinforces the "search before you ask" maxim. Still, for somebody just getting going, how are they to know things like "this is a user forum, so search first" without reading the FAQ?

David
No, you can't have it!