'Query is corrupt' SQL error, after Windows Update
Symptoms
Users will get errors similar to the following, at any point EDS applications try to update data in an Access Database:
Could not execute SQL statement. UPDATE [Table] SET [Column1]='ValueA' WHERE [Column2]='ValueB' Data in the first row is: ... HY000 (-3067): [Microsoft][ODBC Microsoft Access Driver] Query '' is corrupt. Stack Trace: ...
The text HY000 (-3067): [Microsoft][ODBC Microsoft Access Driver] Query '' is corrupt
indicates this particular problem.
Explanation
Microsoft pushed a security update for all versions of Access (2010, 2013, 2016, 2019, 365 ProPlus) as part of their November 'Patch Tuesday'.
This update causes the MS Access driver to fail/reject legitimate SQL queries for updating data in an Access Database, thus seriously impacting the ability of IM and CS to function (as well as any other Access Database functionality, such as MDB reports in EBase).
This problem is wholly caused by Microsoft, and is not due to a bug or change in EDS.
Customers using SQL server databases (rather than Access) should not be affected.
Resolution
As of December 10, 2019, Microsoft have rolled out fixes for all versions of Office:
Version | Fixed Build | Release Date | Knowledge Base Link |
---|---|---|---|
Access 2010 MSI Access Database Engine 2010 Redistributable | 7241.5001 | November 27, 2019 | KB2986256 |
Access 2010 ClickToRun | 7243.5000 | December 10, 2019 | |
Access 2013 MSI | 5189.1002 | November 27, 2019 | KB2965317 |
Access 2013 ClickToRun | 5197.1000 | December 10, 2019 | |
Access 2016 MSI Access Database Engine 2016 Redistributable | 4927.1002 | November 18, 2019 | KB4484198 |
Access 2019 Volume License | 10353.20037 | December 10, 2019 | |
Office 365 (Monthly Channel) Access 2016 ClickToRun Access 2019 Retail (v1910) | 12130.20390 | November 18, 2019 | |
Office 365 (Semi-Annual, v1902) | 11328.20480 | November 22, 2019 | |
Office 365 (Semi-Annual, v1808) | 10730.20422 | November 22, 2019 | |
Office 365 (Semi-Annual, v1908) | 11929.20494 | November 22, 2019 |
Fixes are delivered via Windows Update/Microsoft Update, or by choosing File => Account => Update Options => Update Now, within an Office application, or can be downloaded manually via the MS Knowledge Base pages linked above.
If you still get the error after updating, install KB2986256 (for the Access Database Engine 2010 Redistributable used by EDS).