Describes how to connect to Microsoft Access database files.
The AnyDAC native driver supports the Microsoft Access 95, 97, 2000, 2003, 2007 and 2010 databases.
AnyDAC requires one of the Microsoft Access x86 or x64 ODBC drivers to be installed on the workstation:
details. You may also use one of the alternative drivers provided for non-English languages.
details.When the Microsoft Access ODBC driver has not been properly installed, you will get an exception when you try to connect:
[AnyDAC][Phys][ODBC][Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.
When trying to open a DB created with a newer Access version using an older Access driver, you will get an exception:
[AnyDAC][Phys][ODBC][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.
AnyDAC does not support Microsoft Access database connection on Linux and Mac OS X.
To link the driver:
To connect to a Microsoft Access database, most applications will need to specify DriverID and Database.
Note, AnyDAC supports the password protected databases, but the password length must less or equal to 14 characters. With a more long password an application will raise "Not a valid password" exception.
DriverID=MSAcc
|
Parameter |
Description |
Example value |
|
Database |
The path to the MDB file. |
c:\mydb.mdb |
|
SystemDB |
The path to the system database file. |
c:\mysystem.mdb |
|
ReadOnly |
Specify True to open a database in read-only mode. False is the default value. |
True |
|
StringFormat |
Defines how to represent String values:
|
Unicode |
|
ODBCAdvanced |
Allows you to specify any other additional ODBC connection parameter value. The default value is "ExtendedAnsiSQL=1". |
IMPLICITCOMMITSYNC=NO |
DriverID=MSAcc Database=c:\mydata.mdb
DriverID=MSAcc Database=c:\mydata.mdb SystemDB=c:\system.mdb User_Name=usr Password=pwd
DriverID=MSAcc Database=c:\mydata.mdb Password=pwd
Note: to drop/create, encrypt, compact and repair the database use TADMSAccessUtility component.
|
What do you think about this topic? Send feedback!
|