<?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: Refresh Database Connection in modelbuilder or python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/refresh-database-connection-in-modelbuilder-or/m-p/190505#M14617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Wes.&amp;nbsp; Adding that code to the exported python script works. &lt;/P&gt;&lt;P&gt;arcpy.refreshcatalog({file path to database connection file})&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 May 2016 19:43:36 GMT</pubDate>
    <dc:creator>SharonZastre</dc:creator>
    <dc:date>2016-05-27T19:43:36Z</dc:date>
    <item>
      <title>Refresh Database Connection in modelbuilder or python</title>
      <link>https://community.esri.com/t5/python-questions/refresh-database-connection-in-modelbuilder-or/m-p/190503#M14615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a model that will select features in an enterprise db and export to a dbf table.&amp;nbsp; This feature class is versioned and when edited, the updated data is not automatically recognized when I run the model.&amp;nbsp; I need to refresh the database (in ArcCatalog, right click db connection &amp;gt; refresh) before the feature class table will update.&amp;nbsp; Is there a tool that I can add to modelbuilder that will refresh the database before the Table Select tool runs so that it is running on updated data.&amp;nbsp; Ultimately this needs to run as a scheduled task so no manual process should be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS 10.2.2&lt;/P&gt;&lt;P&gt;SQL Server db&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sharon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 20:10:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/refresh-database-connection-in-modelbuilder-or/m-p/190503#M14615</guid>
      <dc:creator>SharonZastre</dc:creator>
      <dc:date>2016-05-26T20:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Database Connection in modelbuilder or python</title>
      <link>https://community.esri.com/t5/python-questions/refresh-database-connection-in-modelbuilder-or/m-p/190504#M14616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this will work. Have a look at &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/refreshcatalog.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/refreshcatalog.htm"&gt;RefreshCatalog—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 20:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/refresh-database-connection-in-modelbuilder-or/m-p/190504#M14616</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-05-26T20:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Database Connection in modelbuilder or python</title>
      <link>https://community.esri.com/t5/python-questions/refresh-database-connection-in-modelbuilder-or/m-p/190505#M14617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Wes.&amp;nbsp; Adding that code to the exported python script works. &lt;/P&gt;&lt;P&gt;arcpy.refreshcatalog({file path to database connection file})&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 19:43:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/refresh-database-connection-in-modelbuilder-or/m-p/190505#M14617</guid>
      <dc:creator>SharonZastre</dc:creator>
      <dc:date>2016-05-27T19:43:36Z</dc:date>
    </item>
  </channel>
</rss>

