2.2.13.2 Query

An implementation of the SharePoint Search SQL syntax MUST support two statements:

  • SELECT Statement

  • SET Statement

    Statements MUST be separated by semicolons. There MUST be exactly one SELECT statement in every SharePoint Search SQL query, and it MUST be the last statement. The query MUST NOT be longer than an implementation-defined number of Unicode characters. This length limit SHOULD be greater than 1024 characters.<20>

This is the top-level element of the grammar:

 query                  =   *ws *(set-statement *ws ";" *ws) select-statement *ws