| Previous | Next |
| IDS_MON_PARSE_ERR_2_PARAM | IDS_MON_ORDINAL_OUT_OF_RANGE |
IDS_MON_SEMI_COLON
IDS_MON_SEMI_COLON is a statement-boundary error. The catalog query interface expects one query command; a semicolon used to chain another statement is interpreted as an attempt to submit multiple commands, which the parser rejects.
Find where the second statement entered the command text
- Log the complete SQL passed to
ICommand::Executeor the equivalent OLE DB layer. - Do not concatenate setup, query, and cleanup SQL into one command for the Windows Search provider.
- Treat user-controlled semicolons as input to be escaped or rejected according to the query builder rather than appended directly to SQL.
The documented Windows Search query forms are single SELECT or hierarchical GROUP ON ... OVER statements. This differs from database engines that accept statement batches. If a generic data-access layer adds a trailing command, session directive, or another SELECT, split the operations at the provider boundary. Removing the semicolon alone is unsafe when it merely hides unintended concatenation.
Parser messages · Supported statement forms
Looking for a different code? Search another status or error code.
