<?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: Script database connect in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/script-database-connect/m-p/447755#M35111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;renatognog:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is your data being consumed by an ArcGIS Server service or ArcIMS service?&amp;nbsp; If it is I would recommend a truncate and append process that bypasses schema locks that are in place from the above mentioned services.&amp;nbsp; DeleteRows_Management followed by Append_Management&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2012 01:30:24 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2012-03-22T01:30:24Z</dc:date>
    <item>
      <title>Script database connect</title>
      <link>https://community.esri.com/t5/python-questions/script-database-connect/m-p/447752#M35108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is new programin in language python and problem connection database script arcsde.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Create script in arc catalog and export script to execute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# ---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# processo_01.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Created on: 2012-01-13 11:30:03.00000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&amp;nbsp;&amp;nbsp; (generated by ArcGIS/ModelBuilder)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Description: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# ---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Import arcpy module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = "C:\\\connectionFiles\\GEO_DADOS.sde"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Local variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gisvcc_dbo_INT_VW_SIG_IMOVEIS = "gisvcc.dbo.INT_VW_SIG_IMOVEIS"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gisvcc_GEO_DADOS_SIG_IMOVEIS = "gisvcc.GEO_DADOS.SIG_IMOVEIS"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Copy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Copy_management(gisvcc_dbo_INT_VW_SIG_IMOVEIS, gisvcc_GEO_DADOS_SIG_IMOVEIS, "Table")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before run script error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python26\ArcGIS10.0&amp;gt;python.exe C:\Users\xxxx\Desktop\processo_01.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;py&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Users\xxxx\Desktop\processo_01.py", line 18, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Copy_management(gisvcc_dbo_INT_VW_SIG_IMOVEIS, gisvcc_GEO_DADOS_SIG_IM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OVEIS, "Table")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", li&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ne 3010, in Copy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgisscripting.ExecuteError: ERROR 000258: Output C:\\connectionFiles\GEO_DADOS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.sde\gisvcc.GEO_DADOS.SIG_IMOVEIS already exists&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Copy).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which this error can be?!!?!?!?!?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 11:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-database-connect/m-p/447752#M35108</guid>
      <dc:creator>RenatoNogueira</dc:creator>
      <dc:date>2012-03-20T11:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script database connect</title>
      <link>https://community.esri.com/t5/python-questions/script-database-connect/m-p/447753#M35109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It looks like your output in arcpy.Copy_management already exists. I would either delete it or use an overwrite statement to overwrite your output.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 17:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-database-connect/m-p/447753#M35109</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2012-03-20T17:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script database connect</title>
      <link>https://community.esri.com/t5/python-questions/script-database-connect/m-p/447754#M35110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It looks like your output in arcpy.Copy_management already exists. I would either delete it or use an overwrite statement to overwrite your output.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Inside the tool it deletes and then recreates the information. Can you tell me which statement you use to delete first and then reconstruct the data?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 17:00:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-database-connect/m-p/447754#M35110</guid>
      <dc:creator>RenatoNogueira</dc:creator>
      <dc:date>2012-03-21T17:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script database connect</title>
      <link>https://community.esri.com/t5/python-questions/script-database-connect/m-p/447755#M35111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;renatognog:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is your data being consumed by an ArcGIS Server service or ArcIMS service?&amp;nbsp; If it is I would recommend a truncate and append process that bypasses schema locks that are in place from the above mentioned services.&amp;nbsp; DeleteRows_Management followed by Append_Management&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 01:30:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-database-connect/m-p/447755#M35111</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2012-03-22T01:30:24Z</dc:date>
    </item>
  </channel>
</rss>

