Access Violation using MSAccess 2007 Database File

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
johnbitner
Posts: 22
Joined: Thu 10 Sep 2009 16:18
Location: United States

Access Violation using MSAccess 2007 Database File

Post by johnbitner » Mon 28 Sep 2009 19:02

When I try to connect to an Access 2007 (accdb) database file I get an the error message.

[Microsoft][ODBC Microsoft Access Driver] Cannot open database '(unknown)'. It may not be a database that your application recognizes, or the file may be corrupt. EUniError

The code to recreate this is simply:
...
UniConnection1.ProviderName:= 'ACCESS';
UniConnection1.Database:= ExtractFilePath(Application.ExeName)+'database2.accdb';
try
UniConnection1.Connect;
except
on e:exception do
ShowMessage(e.Message+' '+e.ClassName);
end;
...

The database2.accdb file has a single table with just a few records.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 01 Oct 2009 08:35

The current UniDAC version does not support Access 2007 databases. We will add such support in the next UniDAC build.

johnbitner
Posts: 22
Joined: Thu 10 Sep 2009 16:18
Location: United States

Access 2007 is on the list...

Post by johnbitner » Fri 02 Oct 2009 12:11

http://www.devart.com/unidac/compatibility.html

# Microsoft Access
version 95, 97, 2000, 2003, and 2007.

Who didn't test a 2007 file for at least basic functionality before posting this on the compatibility page?

I've reported several issues in the uniDAC related to MSAccess connectivity and I've only been using it a few weeks on a project.

When can we expect that update?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 06 Oct 2009 07:42

We are planning to release the new UniDAC build this week.

PascalD2
Posts: 9
Joined: Wed 12 Jan 2011 03:48

Access 2007 problem

Post by PascalD2 » Wed 12 Jan 2011 03:57

I'm having the exact same error message with 3.50.0.14

Is there any known issues about this ?

I'm just using a plain connection and an AccessProvider.

When I save the db as 2003 everything works fine!

Thanks

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Wed 12 Jan 2011 15:42

Hello,

I can not reproduce the problem.
I have tested it on UniDAC 3.50.0.14, MS Access 2007 (12.0.4518.1014) and connecting to database was successful.
Please specify the exact version of MS Access and send a sample database to alexp*devart*com.

Post Reply