<?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 Returning a text box / message string containing SQL query results in Python in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/returning-a-text-box-message-string-containing-sql/m-p/486160#M3270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’ve bumped into a bit of a specific question, and I’m reaching out for help.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Several years back, I started using Model Builder scripts in Python and running them as Scheduled Tasks (No problem).&amp;nbsp; Since some functions and calculations can be run more efficiently by SQL rather than ESRI tools within a Model, I’ve also begun to add some SQL queries and code into my Python script that are based on the Model builder results (all within the same python script).&amp;nbsp; An example of this is &lt;A href="http://support.esri.com/ja/knowledgebase/techarticles/detail/40599"&gt;here&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now need to return a message box or text string to the user from the Python script containing results of the SQL code used within the same Python script.&amp;nbsp; I can get a message box, but I need the message box to contain certain query results.&amp;nbsp; Has anyone else tried this?&amp;nbsp; Do you have any resources that might be able to help?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contact me if you need further details.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2014 16:55:45 GMT</pubDate>
    <dc:creator>AndrewVitale1</dc:creator>
    <dc:date>2014-10-10T16:55:45Z</dc:date>
    <item>
      <title>Returning a text box / message string containing SQL query results in Python</title>
      <link>https://community.esri.com/t5/developers-questions/returning-a-text-box-message-string-containing-sql/m-p/486160#M3270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’ve bumped into a bit of a specific question, and I’m reaching out for help.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Several years back, I started using Model Builder scripts in Python and running them as Scheduled Tasks (No problem).&amp;nbsp; Since some functions and calculations can be run more efficiently by SQL rather than ESRI tools within a Model, I’ve also begun to add some SQL queries and code into my Python script that are based on the Model builder results (all within the same python script).&amp;nbsp; An example of this is &lt;A href="http://support.esri.com/ja/knowledgebase/techarticles/detail/40599"&gt;here&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now need to return a message box or text string to the user from the Python script containing results of the SQL code used within the same Python script.&amp;nbsp; I can get a message box, but I need the message box to contain certain query results.&amp;nbsp; Has anyone else tried this?&amp;nbsp; Do you have any resources that might be able to help?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contact me if you need further details.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 16:55:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/returning-a-text-box-message-string-containing-sql/m-p/486160#M3270</guid>
      <dc:creator>AndrewVitale1</dc:creator>
      <dc:date>2014-10-10T16:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a text box / message string containing SQL query results in Python</title>
      <link>https://community.esri.com/t5/developers-questions/returning-a-text-box-message-string-containing-sql/m-p/486161#M3271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A fairly broad question.&amp;nbsp; What specifically have you tried already?&amp;nbsp; Do you have specific code that is generating errors?&amp;nbsp; If so, what are the parts of the code generating errors and what are the errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not to answer a question with a question, but it is easier to get specific and quicker feedback when more details are given, especially samples of code that aren't working for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 20:31:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/returning-a-text-box-message-string-containing-sql/m-p/486161#M3271</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2014-10-13T20:31:29Z</dc:date>
    </item>
  </channel>
</rss>

