常见问题

常见问题解答:2020 年 6 月 ArcGIS Online 标准化 SQL 查询强制执行有何含义?

Last Published: May 3, 2024

答案

Standardized SQL queries will be enforced for all organizations starting with the June 2020 ArcGIS Online update.

ArcGIS Online requires developers to use standardized SQL queries when querying hosted feature layers. This makes it easier and more secure to query hosted feature layers, and helps prevent SQL injection attacks. All ArcGIS applications automatically support standard SQL queries.

Standardized SQL queries abstract the SQL syntax accepted by ArcGIS Enterprise or ArcGIS Online away from vendor-specific syntax and toward a generic vendor-agnostic syntax. In most cases, users who require the standardized SQL query option to be disabled are working with services hosted on stand-alone, third-party, OGC-compliant providers or by services from ArcGIS Enterprise, which require database vendor-specific query syntax. 

Standardized SQL queries have been enforced by default since September 2018. Starting with the ArcGIS Online June 2020 update, Standard SQL queries are required for hosted feature layers.

Customers with ArcGIS Online organizations established prior to mid-September 2018 may have disabled this setting to allow nonstandard queries for hosted feature layers. In some cases, older applications that were built to support legacy, custom, or 3rd-party components may not support standardized SQL queries. Those applications must be updated to use standard SQL queries after June 2020 update.

What to do if your ArcGIS Online organization has currently disabled the standardized SQL query setting

If your organization has legacy, custom, or third-party applications that can query data, we suggest that you confirm those applications are using standard SQL syntax. To validate this, enable the standardized SQL query settings in your organization and test that your applications function as expected. This setting may be disabled before the June 2020 ArcGIS Online update to provide time to address the query patterns used by affected apps. 

To enable the standardized query option, log in your ArcGIS Online organization as an administrator, go to Organization > Settings > Security > Policies > SQL queries, and turn on the option Allow only standard SQL queries. The Configure Security Settings section of the ArcGIS Online Administration documentation has more information about this setting. 

Note:
Once the June 2020 ArcGIS Online update occurs, the option to disable standardized queries will no longer be available on  the Organization Settings page.

文章 ID:000023314

接收通知并查找新问题或常见问题的解决方案

从我们全新的 AI 聊天机器人中获得简明答案和视频解决方案。

下载 Esri 支持应用程序

相关信息

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项