top of page

Invalid SQL Statement with Monaco in Version 2505 (Fixed)

Updated: Jun 18


Description

In the Current Channel version 2505 build 18827.20140 from June 3 and 18827.20150 from June 10 some perfectly valid SQL statements may generate the error message

Invalid SQL Statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE' and it is not possible to execute or save these queries.


There have been a couple of reports:


Cause

Bug in the Monaco SQL editor.


The problem happens with queries that contain non-ASCII characters like German umlauts, accented letters, Chinese, Japanese, Hebrew, Cyrillic etc. Example:


INSERT INTO Table1

VALUES ('Müller')

triggers the error message.


INSERT INTO Table1

VALUES ('Mueller')

does not.


To get the error, you must be actively working in the Monaco SQL editor (typing/deleting 1 letter is enough), not just in design view.


Status

Microsoft released a fix for this problem in the Current Channel on June 17. The fixing update is version 2505 build 18827.20164. 

If you do not receive it automatically, you can retrieve it by choosing File  Account  Update Options  Update Now.


Workaround 1

Disabling Monaco solves the problems: go to File - Options - Current Database and clear the checkbox at Enable Monaco SQL Editor.


Workaround 2

Since the bug only occurs when a query is edited in the Monaco SQL editor, queries created exclusively in design view work properly.


Notes

a) Current Channel Preview and Beta Channel are not affected by the current problems.

b) There have been several bugs in the Monaco editor in the past that caused the same or similar error messages which have mostly been fixed. Details can be found on Colin Riddington's Monaco page under Known Issues and Fixed Issues.

4 commentaires


Shane Groff
12 juin

This issue is also caused when Chinese/Japanese characters are used.

J'aime
En réponse à

Thanks Shane, I've added this information to the article text for better visibility.

J'aime

Richard Rost
Richard Rost
12 juin

Thanks

J'aime

Duncan Salmon
Duncan Salmon
12 juin

I came across this very bug earlier this week. Very frustrating but good to know disabling Monaco is a workable solution!

J'aime
bottom of page