<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Parameterized/safe queries for QueryTask? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/parameterized-safe-queries-for-querytask/m-p/675297#M17388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any way to build 'safe' queries with a QueryTask?&amp;nbsp; The documentation for the WhereClause property says &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"A where clause for the query. Any legal SQL where clause operating on the fields in the layer is allowed, for example: where=POP2000 &amp;gt; 350000"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But sending a where clause as a string built from user input that gets blindly executed seems ripe for a SQL injection attack.&amp;nbsp; Sure I can sanitize the input but that's a lot of work and could possibly prevent legit queries from being accepted on text fields.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Oct 2010 14:51:19 GMT</pubDate>
    <dc:creator>PaulAbbott</dc:creator>
    <dc:date>2010-10-26T14:51:19Z</dc:date>
    <item>
      <title>Parameterized/safe queries for QueryTask?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/parameterized-safe-queries-for-querytask/m-p/675297#M17388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any way to build 'safe' queries with a QueryTask?&amp;nbsp; The documentation for the WhereClause property says &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"A where clause for the query. Any legal SQL where clause operating on the fields in the layer is allowed, for example: where=POP2000 &amp;gt; 350000"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But sending a where clause as a string built from user input that gets blindly executed seems ripe for a SQL injection attack.&amp;nbsp; Sure I can sanitize the input but that's a lot of work and could possibly prevent legit queries from being accepted on text fields.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 14:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/parameterized-safe-queries-for-querytask/m-p/675297#M17388</guid>
      <dc:creator>PaulAbbott</dc:creator>
      <dc:date>2010-10-26T14:51:19Z</dc:date>
    </item>
  </channel>
</rss>

