<?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 JavaScript API Connect Directly to SQL Database? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145132#M13517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might sound weird but due to cost and architectural constraints, I need to explore whether it is possible for an ArcGIS API for JavaScript web app to connect &lt;EM&gt;&lt;STRONG&gt;directly&lt;/STRONG&gt; &lt;/EM&gt;to a Microsoft SQL database to display (and render) geometries on the web app? In another words, no ArcGIS for Server is involved here - just JavaScript to SQL database. I don't believe this can be achieved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2016 08:39:17 GMT</pubDate>
    <dc:creator>HenryKo3</dc:creator>
    <dc:date>2016-08-05T08:39:17Z</dc:date>
    <item>
      <title>JavaScript API Connect Directly to SQL Database?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145132#M13517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might sound weird but due to cost and architectural constraints, I need to explore whether it is possible for an ArcGIS API for JavaScript web app to connect &lt;EM&gt;&lt;STRONG&gt;directly&lt;/STRONG&gt; &lt;/EM&gt;to a Microsoft SQL database to display (and render) geometries on the web app? In another words, no ArcGIS for Server is involved here - just JavaScript to SQL database. I don't believe this can be achieved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 08:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145132#M13517</guid>
      <dc:creator>HenryKo3</dc:creator>
      <dc:date>2016-08-05T08:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript API Connect Directly to SQL Database?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145133#M13518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JavaScript cannot connect directly to database server you need a middle layer (Web Service) between them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 08:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145133#M13518</guid>
      <dc:creator>Haider_Ali</dc:creator>
      <dc:date>2016-08-05T08:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript API Connect Directly to SQL Database?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145134#M13519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will at least need a server-side page (PHP/ASP) to handle the database connect request.&amp;nbsp; Then you just call the server-side page with an esri.request or AJAX call to retrieve the database query results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What geometries do you have in the database?&amp;nbsp; You should be able to construct graphic layer geometries from it in some way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 09:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145134#M13519</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-08-05T09:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript API Connect Directly to SQL Database?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145135#M13520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will want to fully read and understand if you are compliant with esri Terms of Use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/terms/" title="https://developers.arcgis.com/terms/"&gt;Terms of Use | ArcGIS for Developers&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 12:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145135#M13520</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-05T12:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript API Connect Directly to SQL Database?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145136#M13521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your web server is IIS, I would create a REST endpoint using &lt;A href="http://www.asp.net/web-api"&gt;ASP.NET Web API&lt;/A&gt;. The SQL query would occur here, on the web server, and return the query result as JSON. Your client-side code (JavaScript) would call this REST endpoint and convert the results into features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ArcGIS API for JavaScript is not your only option for creating an interactive map. &lt;A href="http://leafletjs.com/"&gt;Leaflet&lt;/A&gt; is another alternative you might want to consider. If you go with Leaflet, you'll want your server-side code to return the data from SQL as &lt;A href="http://geojson.org/"&gt;GeoJSON&lt;/A&gt;​.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 16:35:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145136#M13521</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2016-08-05T16:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript API Connect Directly to SQL Database?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145137#M13522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This approach might work for us. We could retrieve the geometries and attributes and construct graphic layers from them. We have points and polygons to display. I think the polygons could be multi-part polygons. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 11:02:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-connect-directly-to-sql-database/m-p/145137#M13522</guid>
      <dc:creator>HenryKo3</dc:creator>
      <dc:date>2016-08-10T11:02:50Z</dc:date>
    </item>
  </channel>
</rss>

