<?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 query feature service from SQL server in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/query-feature-service-from-sql-server/m-p/579474#M29049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a Map service that it's source is&amp;nbsp;a feature from SDE (sql server 12).&lt;/P&gt;&lt;P&gt;published using arcgis for server 10.5.1.&lt;/P&gt;&lt;P&gt;when I'm using query&amp;nbsp; through the rest, on a string field, I'm getting nothing. No records found.&lt;/P&gt;&lt;P&gt;this is the rest URL:&amp;nbsp;&lt;A class="link-titled" href="https://mapateva.org.il/arcgis/rest/services/SimunShvilim/MaslulSample/MapServer/2" title="https://mapateva.org.il/arcgis/rest/services/SimunShvilim/MaslulSample/MapServer/2"&gt;Layer: כיוון המסלול (ID: 2)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the field is SiteName and it has Hebrew names. for example - "ירדן"&lt;/P&gt;&lt;P&gt;the syntax I used is:&amp;nbsp;SiteName LIKE '%ירדן%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspected that the query will work if the source of the service will be a feature class in a regular GDB, not in SDE.&lt;/P&gt;&lt;P&gt;and I was right!&lt;/P&gt;&lt;P&gt;in this service, the query on the same field is working fine:&amp;nbsp;&lt;A class="link-titled" href="https://mapateva.org.il/arcgis/rest/services/Open/TrackDirection/MapServer/0" title="https://mapateva.org.il/arcgis/rest/services/Open/TrackDirection/MapServer/0"&gt;Layer: כיוון המסלול (ID: 0)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the syntax I used is:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SiteName LIKE '%ירדן%'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, what can be the problem in my&amp;nbsp;SDE that&amp;nbsp;Prevents the query&amp;nbsp;to&amp;nbsp;search for the strings?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dikla.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2018 15:25:55 GMT</pubDate>
    <dc:creator>SPNIOrganization</dc:creator>
    <dc:date>2018-11-29T15:25:55Z</dc:date>
    <item>
      <title>query feature service from SQL server</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/query-feature-service-from-sql-server/m-p/579474#M29049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a Map service that it's source is&amp;nbsp;a feature from SDE (sql server 12).&lt;/P&gt;&lt;P&gt;published using arcgis for server 10.5.1.&lt;/P&gt;&lt;P&gt;when I'm using query&amp;nbsp; through the rest, on a string field, I'm getting nothing. No records found.&lt;/P&gt;&lt;P&gt;this is the rest URL:&amp;nbsp;&lt;A class="link-titled" href="https://mapateva.org.il/arcgis/rest/services/SimunShvilim/MaslulSample/MapServer/2" title="https://mapateva.org.il/arcgis/rest/services/SimunShvilim/MaslulSample/MapServer/2"&gt;Layer: כיוון המסלול (ID: 2)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the field is SiteName and it has Hebrew names. for example - "ירדן"&lt;/P&gt;&lt;P&gt;the syntax I used is:&amp;nbsp;SiteName LIKE '%ירדן%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspected that the query will work if the source of the service will be a feature class in a regular GDB, not in SDE.&lt;/P&gt;&lt;P&gt;and I was right!&lt;/P&gt;&lt;P&gt;in this service, the query on the same field is working fine:&amp;nbsp;&lt;A class="link-titled" href="https://mapateva.org.il/arcgis/rest/services/Open/TrackDirection/MapServer/0" title="https://mapateva.org.il/arcgis/rest/services/Open/TrackDirection/MapServer/0"&gt;Layer: כיוון המסלול (ID: 0)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the syntax I used is:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SiteName LIKE '%ירדן%'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, what can be the problem in my&amp;nbsp;SDE that&amp;nbsp;Prevents the query&amp;nbsp;to&amp;nbsp;search for the strings?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dikla.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/query-feature-service-from-sql-server/m-p/579474#M29049</guid>
      <dc:creator>SPNIOrganization</dc:creator>
      <dc:date>2018-11-29T15:25:55Z</dc:date>
    </item>
  </channel>
</rss>

