<?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: Help getting data from SQLServer with custom query in my JavaScript Application in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535858#M49946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;O.K. I've been struggling with this for a bit and need to get some further input.&amp;nbsp; This is what I was thinking but it's not working out for me.&amp;nbsp; I've utilized the example for the TableDataSource from ESRI but can't seem to get this.&amp;nbsp; The SDE table has two records in it, a lat and lon value.&amp;nbsp; I need to simply get access to these so I can manipulate the values from NMEA decimal degrees to degrees minutes seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have so far.&amp;nbsp; Simply trying to get these values from table:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# records: 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;instance: &lt;/EM&gt; &lt;A href="http://arcgis10:6080/arcgis/rest/services/Maps/PROD_InteractiveMap/MapServer/7/3" rel="nofollow noopener noreferrer" target="_blank"&gt;3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;val: &lt;/EM&gt; 3609.842234&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;instance: &lt;/EM&gt; &lt;A href="http://arcgis10:6080/arcgis/rest/services/Maps/PROD_InteractiveMap/MapServer/7/5" rel="nofollow noopener noreferrer" target="_blank"&gt;5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;val: &lt;/EM&gt; 11509.241511&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #f9ee98; font-size: 10pt;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; text-decoration: underline; font-size: 10pt;"&gt;g&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;psTable &lt;/SPAN&gt;&lt;SPAN style="color: #cda869; font-size: 10pt;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;TableDataSource();&lt;/SPAN&gt;

&lt;SPAN style="color: #cda869; font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #8f9d6a; font-size: 10pt;"&gt;"GISMO.CFDBSRV.sde"&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;;&lt;/SPAN&gt;

&lt;SPAN style="color: #cda869; font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #8f9d6a; font-size: 10pt;"&gt;"KiwiSysLog.dbo.uv_WIFIGPSLog"&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;;&lt;/SPAN&gt;

&lt;SPAN style="color: #f9ee98; font-size: 10pt;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; text-decoration: underline; font-size: 10pt;"&gt;l&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;ayerSource &lt;/SPAN&gt;&lt;SPAN style="color: #cda869; font-size: 10pt;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;LayerDataSource();&lt;/SPAN&gt;

&lt;SPAN style="color: #cda869; font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;gpsTable;&lt;/SPAN&gt;
&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt; &lt;/SPAN&gt;
&lt;SPAN style="color: #f9ee98; font-size: 10pt;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; text-decoration: underline; font-size: 10pt;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;eatureLayer &lt;/SPAN&gt;&lt;SPAN style="color: #cda869; font-size: 10pt;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;FeatureLayer(&lt;/SPAN&gt;&lt;SPAN style="color: #8f9d6a; font-size: 10pt;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FUSA%2FMapServer%2FdynamicLayer" target="_blank"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/dynamicLayer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;, {&lt;/SPAN&gt;

&lt;SPAN style="color: #8f9d6a; font-size: 10pt;"&gt;"*"&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;],&lt;/SPAN&gt;

&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;source: layerSource&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:16:42 GMT</pubDate>
    <dc:creator>JohnRitsko</dc:creator>
    <dc:date>2021-12-11T23:16:42Z</dc:date>
    <item>
      <title>Help getting data from SQLServer with custom query in my JavaScript Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535850#M49938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my current scenario. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to gain access to a SQL Server called say, SERVER1.&amp;nbsp; Below is the custom SQL Query that I Need to utilize in order to get the most recent GPS record.&amp;nbsp; I can't seem to figure out how to utilize this in my JavaScript Application to get this data.&amp;nbsp; Of course once I get the data I need to dig into it to get the lat/lon, convert it, then map it.&amp;nbsp; One step at a time. Perhaps using $.ajax to do a GET but not quite sure how to go about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL Query:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt; S&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;MSGTEXT&lt;/SPAN&gt;
&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt; [dbo]&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;[Syslogd] S&lt;/SPAN&gt;
&lt;SPAN style="color: gray; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;INNER&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt; &lt;SPAN style="color: gray;"&gt;JOIN&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="color: gray; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;T&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;[MsgDate] &lt;SPAN style="color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: red;"&gt;'MSGDATE' &lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: fuchsia;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;L&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;[MsgTime]&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: red;"&gt;'MSGTIME'&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt; [KiwiSysLog]&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;[dbo]&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;[Syslogd] L&lt;/SPAN&gt;
&lt;SPAN style="color: gray; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;INNER&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt; &lt;SPAN style="color: gray;"&gt;JOIN&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN style="color: gray; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt; &lt;SPAN style="color: fuchsia;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;MSGDATE&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: red;"&gt;'MSGDATE'&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;FROM&lt;/SPAN&gt; [dbo]&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;[Syslogd]&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; T&lt;/SPAN&gt;
&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;ON&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt; L&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;MsgDate &lt;SPAN style="color: gray;"&gt;=&lt;/SPAN&gt; T&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;MSGDATE&lt;/SPAN&gt;
&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;GROUP&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt; &lt;SPAN style="color: blue;"&gt;BY &lt;/SPAN&gt;T&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;MSGDATE&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; DT&lt;/SPAN&gt;
&lt;SPAN style="color: blue; line-height: 115%; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt;ON&lt;/SPAN&gt;&lt;SPAN style="line-height: 115%; font-family: 'Courier New'; font-size: 10pt; mso-no-proof: yes;"&gt; S&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;MsgDate &lt;SPAN style="color: gray;"&gt;=&lt;/SPAN&gt; DT&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;MSGDATE &lt;SPAN style="color: gray;"&gt;AND&lt;/SPAN&gt; S&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;MsgTime &lt;SPAN style="color: gray;"&gt;=&lt;/SPAN&gt; DT&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;MSGTIME&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Results in Microsoft SQL Server Management Studio Express:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;$GPGGA,222020.0,3609.839478,N,11509.243300,W,1,08,0.8,618.9,M,-18.0,M,,,9999*4F&amp;nbsp; $GPRMC,222020.0,A,3609.839478,N,11509.243300,W,1.1,302.7,270416,0.0,E,A,9999*34&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate the help.&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535850#M49938</guid>
      <dc:creator>JohnRitsko</dc:creator>
      <dc:date>2021-12-11T23:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting data from SQLServer with custom query in my JavaScript Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535851#M49939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make a service with the sql query that u need and publish it (as data table) and then u can access the data using the normal query and querytask. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 14:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535851#M49939</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2016-04-28T14:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting data from SQLServer with custom query in my JavaScript Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535852#M49940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My only issue with this is I cannot connect to this server in ArcCatalog so I can't access the database or the table I need.&amp;nbsp; I have read only access to it through SQL Server Management Studio.&amp;nbsp; Going to work with my database admin to see how to resolve this.&amp;nbsp; If I can get it into a map then I'll do what you said Evelyn.&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 15:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535852#M49940</guid>
      <dc:creator>JohnRitsko</dc:creator>
      <dc:date>2016-04-28T15:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting data from SQLServer with custom query in my JavaScript Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535853#M49941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several ways to do it, but one of the easiest would be to create a web service that returns a CSV file with your query results, and use the CSVLayer to map it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/csvlayer-amd.html" title="https://developers.arcgis.com/javascript/jsapi/csvlayer-amd.html"&gt;CSVLayer | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 15:00:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535853#M49941</guid>
      <dc:creator>MarcBate</dc:creator>
      <dc:date>2016-04-28T15:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting data from SQLServer with custom query in my JavaScript Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535854#M49942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other option is:&lt;/P&gt;&lt;P&gt;In ur sql database make a view with the query that u show me.&lt;/P&gt;&lt;P&gt;Then u go to ur arcgis and publish the view with a where option that u need, in this case u will need a where clausule to get the last record.&lt;/P&gt;&lt;P&gt;Cuz arcgis cannot make complex queries, i do this when i need more complex data. (so the view works as a table where i can access that data)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 15:05:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535854#M49942</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2016-04-28T15:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting data from SQLServer with custom query in my JavaScript Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535855#M49943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I now have access to the table in Catalog but when I try to publish it, it wants to copy the database to server.&amp;nbsp; I don't want that as the View will not be refreshed each time I want to look at it.&amp;nbsp; Open to ideas.&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 22:40:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535855#M49943</guid>
      <dc:creator>JohnRitsko</dc:creator>
      <dc:date>2016-04-28T22:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting data from SQLServer with custom query in my JavaScript Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535856#M49944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll need to register your data with the server, as described here: &lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/making-your-data-accessible-to-arcgis-server.htm#ESRI_SECTION1_2B393373CC0D48518596D3380A972B8A" title="http://server.arcgis.com/en/server/latest/publish-services/windows/making-your-data-accessible-to-arcgis-server.htm#ESRI_SECTION1_2B393373CC0D48518596D3380A972B8A"&gt;Make your data accessible to ArcGIS Server—Documentation | ArcGIS for Server&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 23:13:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535856#M49944</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2016-04-28T23:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting data from SQLServer with custom query in my JavaScript Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535857#M49945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for the input.&amp;nbsp; I believe I'm almost there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 23:59:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535857#M49945</guid>
      <dc:creator>JohnRitsko</dc:creator>
      <dc:date>2016-04-28T23:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting data from SQLServer with custom query in my JavaScript Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535858#M49946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;O.K. I've been struggling with this for a bit and need to get some further input.&amp;nbsp; This is what I was thinking but it's not working out for me.&amp;nbsp; I've utilized the example for the TableDataSource from ESRI but can't seem to get this.&amp;nbsp; The SDE table has two records in it, a lat and lon value.&amp;nbsp; I need to simply get access to these so I can manipulate the values from NMEA decimal degrees to degrees minutes seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have so far.&amp;nbsp; Simply trying to get these values from table:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# records: 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;instance: &lt;/EM&gt; &lt;A href="http://arcgis10:6080/arcgis/rest/services/Maps/PROD_InteractiveMap/MapServer/7/3" rel="nofollow noopener noreferrer" target="_blank"&gt;3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;val: &lt;/EM&gt; 3609.842234&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;instance: &lt;/EM&gt; &lt;A href="http://arcgis10:6080/arcgis/rest/services/Maps/PROD_InteractiveMap/MapServer/7/5" rel="nofollow noopener noreferrer" target="_blank"&gt;5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;val: &lt;/EM&gt; 11509.241511&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #f9ee98; font-size: 10pt;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; text-decoration: underline; font-size: 10pt;"&gt;g&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;psTable &lt;/SPAN&gt;&lt;SPAN style="color: #cda869; font-size: 10pt;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;TableDataSource();&lt;/SPAN&gt;

&lt;SPAN style="color: #cda869; font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #8f9d6a; font-size: 10pt;"&gt;"GISMO.CFDBSRV.sde"&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;;&lt;/SPAN&gt;

&lt;SPAN style="color: #cda869; font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #8f9d6a; font-size: 10pt;"&gt;"KiwiSysLog.dbo.uv_WIFIGPSLog"&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;;&lt;/SPAN&gt;

&lt;SPAN style="color: #f9ee98; font-size: 10pt;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; text-decoration: underline; font-size: 10pt;"&gt;l&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;ayerSource &lt;/SPAN&gt;&lt;SPAN style="color: #cda869; font-size: 10pt;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;LayerDataSource();&lt;/SPAN&gt;

&lt;SPAN style="color: #cda869; font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;gpsTable;&lt;/SPAN&gt;
&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt; &lt;/SPAN&gt;
&lt;SPAN style="color: #f9ee98; font-size: 10pt;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; text-decoration: underline; font-size: 10pt;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;eatureLayer &lt;/SPAN&gt;&lt;SPAN style="color: #cda869; font-size: 10pt;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;FeatureLayer(&lt;/SPAN&gt;&lt;SPAN style="color: #8f9d6a; font-size: 10pt;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FUSA%2FMapServer%2FdynamicLayer" target="_blank"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/dynamicLayer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;, {&lt;/SPAN&gt;

&lt;SPAN style="color: #8f9d6a; font-size: 10pt;"&gt;"*"&lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;],&lt;/SPAN&gt;

&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #f8f8f8; font-size: 10pt;"&gt;source: layerSource&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:16:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535858#M49946</guid>
      <dc:creator>JohnRitsko</dc:creator>
      <dc:date>2021-12-11T23:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting data from SQLServer with custom query in my JavaScript Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535859#M49947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create a service that has a dynamic layer in it and then put in your dynamic layer URL on the ArcGIS Server that has your &lt;SPAN style="color: #0000ff; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;GISMO.CFDBSRV.sde &lt;/SPAN&gt;connection registered &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 22:04:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535859#M49947</guid>
      <dc:creator>MarcBate</dc:creator>
      <dc:date>2016-05-03T22:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help getting data from SQLServer with custom query in my JavaScript Application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535860#M49948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I way overthought what I was doing.&amp;nbsp; I registered the database on Server then utilized the QueryTask as stated.&amp;nbsp; I then created the query for the values and then pushed those into an array and converted them into lat/lon as needed then created a graphic for them and added them to the map.&amp;nbsp; Problem solved.&amp;nbsp; Thank you all for the input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 22:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-getting-data-from-sqlserver-with-custom-query/m-p/535860#M49948</guid>
      <dc:creator>JohnRitsko</dc:creator>
      <dc:date>2016-05-03T22:19:55Z</dc:date>
    </item>
  </channel>
</rss>

