Lazarus
Programming => Databases => Topic started by: DimProfi on November 25, 2007, 03:43:45 am
-
The MS Access ODBC driver seems not to support the SQLPrimaryKeys API function, hence UpdateIndexDefs will fail. Currently, you must set SQLQuery.ReadOnly:=true; to avoid an exception until code has been added that tests for the availability of the function in the driver
Source: http://wiki.lazarus.freepascal.org/ODBCConn
Is there any solution or walkaround for readwrite-acesss to MS-Access Databases with lazarus?
-
Just use Unit "odbcsql" from FPC Package.
See Example in
"lazarus\fpc\2.2.0\source\packages\base\odbc\testodbc.pp"
It works!
-
Thanks to mymself. :D
-
Hi,
Do you have any sample project?
Thanks :D
jdazag
-
Hi,
Do you have any sample project?
Thanks :D
jdazag
See:
lazarus\fpc\2.2.0\source\packages\base\odbc\testodbc.pp
It works!