<?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 Call external script from Model Builder or python in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/call-external-script-from-model-builder-or-python/m-p/782360#M1349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not a developer but we managed to create a python script produced by Model Builder to automate some daily task.&amp;nbsp; There are some sql statements that need to be run between procedures in the model.&amp;nbsp; Is it possible to call an external sql script from our file to secure the whole process from a single execution?&amp;nbsp; Any help is appreciated...thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 May 2019 14:30:05 GMT</pubDate>
    <dc:creator>Ulises</dc:creator>
    <dc:date>2019-05-06T14:30:05Z</dc:date>
    <item>
      <title>Call external script from Model Builder or python</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/call-external-script-from-model-builder-or-python/m-p/782360#M1349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not a developer but we managed to create a python script produced by Model Builder to automate some daily task.&amp;nbsp; There are some sql statements that need to be run between procedures in the model.&amp;nbsp; Is it possible to call an external sql script from our file to secure the whole process from a single execution?&amp;nbsp; Any help is appreciated...thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2019 14:30:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/call-external-script-from-model-builder-or-python/m-p/782360#M1349</guid>
      <dc:creator>Ulises</dc:creator>
      <dc:date>2019-05-06T14:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Call external script from Model Builder or python</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/call-external-script-from-model-builder-or-python/m-p/782361#M1350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you normally run you SQL statements? Do you spin up an instance of MS Access and execute it, run it in a custom VB .net console app or manually type it into MySQL?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2019 13:50:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/call-external-script-from-model-builder-or-python/m-p/782361#M1350</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2019-05-10T13:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Call external script from Model Builder or python</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/call-external-script-from-model-builder-or-python/m-p/782362#M1351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually schedule a batch file that run the sql command thru the command prompt.&amp;nbsp; Our data is in an enterprise geodatabase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2019 14:08:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/call-external-script-from-model-builder-or-python/m-p/782362#M1351</guid>
      <dc:creator>Ulises</dc:creator>
      <dc:date>2019-05-10T14:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Call external script from Model Builder or python</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/call-external-script-from-model-builder-or-python/m-p/782363#M1352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simple google search threw up this &lt;A href="https://datatofish.com/batch-file-from-python/"&gt;blog&lt;/A&gt; that explains how to call a batch file from within python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to maintain your workflow as a model then you would write your python code that calls the batch file in the model only &lt;EM&gt;calculate value&lt;/EM&gt; tool. Have a look at help file for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2019 14:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/call-external-script-from-model-builder-or-python/m-p/782363#M1352</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2019-05-10T14:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Call external script from Model Builder or python</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/call-external-script-from-model-builder-or-python/m-p/782364#M1353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Duncan, I'll check it out and let you know how it goes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2019 14:17:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/call-external-script-from-model-builder-or-python/m-p/782364#M1353</guid>
      <dc:creator>Ulises</dc:creator>
      <dc:date>2019-05-10T14:17:58Z</dc:date>
    </item>
  </channel>
</rss>

