<?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 Re: Find task with wildcards? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388368#M35836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/10025032/what-is-the-meaning-of-the-prefix-n-in-t-sql-statements" title="http://stackoverflow.com/questions/10025032/what-is-the-meaning-of-the-prefix-n-in-t-sql-statements"&gt;sql server - What is the meaning of the prefix N in T-SQL statements? - Stack Overflow&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; background-color: #eeeeee;"&gt;You may have seen Transact-SQL code that passes strings around using an N prefix. This denotes that the subsequent string is in Unicode (the N actually stands for National language character set). Which means that you are passing an NCHAR, NVARCHAR or NTEXT value, as opposed to CHAR, VARCHAR or TEXT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2014 13:09:12 GMT</pubDate>
    <dc:creator>AdrianMarsden</dc:creator>
    <dc:date>2014-08-12T13:09:12Z</dc:date>
    <item>
      <title>Find task with wildcards?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388365#M35833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;‌&lt;/STRONG&gt;&lt;/SPAN&gt;Hi&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;I'm trying to re-create this T-SQL in a find task&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14078420302005985 jive_text_macro" jivemacro_uid="_14078420302005985"&gt;
&lt;P&gt;SELECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OBJECTID, UPRN, LADDRESS, PASTEADDRESS, LOGICAL_STATUS, LPIKEY, PROPERTY_TYPE, ORGANISATION, USRN, STREET_NAME, TOWN_NAME, LOCALITY, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; POSTCODE, POSTTOWN, UPDATED, STREET_REF_TYPE, POSTALLYADDRESSABLE, PROPERTYSTATE, LPISTATUS, XREF, YREF, Shape, SortPAON&lt;/P&gt;
&lt;P&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v_ADDRESSES_FULL_LLPG&lt;/P&gt;
&lt;P&gt;WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PASTEADDRESS LIKE N'1 %FORE STREET%')&lt;/P&gt;
&lt;/PRE&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;The important bit is the WHERE.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;This will return "1 Fore Street" but also " 1 The Fishermans,&amp;nbsp; Fore Street" , "1 - 4 Forestreet" and a host of others.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;How do I specify this in a query for a find task?&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;BR /&gt;Cheers&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;BR /&gt;ACM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12.222222328186035px;"&gt;This&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 11:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388365#M35833</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2014-08-12T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Find task with wildcards?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388366#M35834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The FindTask does not allow for a where clause as it uses a searchText property that defines the where clause internally. You can have the QueryTask use your where clause specified above. One thing that sticks out to be is the PASTEADDRESS &lt;SPAN class="op"&gt;LIKE &lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;N&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="string"&gt;'1 %FORE STREET%' I have not seen the "N" used in SQL before is this a typo or does it actually do something in TSQL?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:05:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388366#M35834</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-12T13:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Find task with wildcards?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388367#M35835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The N - Dunno - it is what SQL Manager puts in when you design a query - I have no idea why or what it does - I never write it myself and they always work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:08:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388367#M35835</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2014-08-12T13:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Find task with wildcards?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388368#M35836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/10025032/what-is-the-meaning-of-the-prefix-n-in-t-sql-statements" title="http://stackoverflow.com/questions/10025032/what-is-the-meaning-of-the-prefix-n-in-t-sql-statements"&gt;sql server - What is the meaning of the prefix N in T-SQL statements? - Stack Overflow&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; background-color: #eeeeee;"&gt;You may have seen Transact-SQL code that passes strings around using an N prefix. This denotes that the subsequent string is in Unicode (the N actually stands for National language character set). Which means that you are passing an NCHAR, NVARCHAR or NTEXT value, as opposed to CHAR, VARCHAR or TEXT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:09:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388368#M35836</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2014-08-12T13:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Find task with wildcards?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388369#M35837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Good to know. So have you tried the queryTask using that where clause?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388369#M35837</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-12T13:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find task with wildcards?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388370#M35838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not yet - it would take a fair bit of re-coding - not that urgent at the moment - thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:18:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-with-wildcards/m-p/388370#M35838</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2014-08-12T13:18:51Z</dc:date>
    </item>
  </channel>
</rss>

