<?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: ArcPy access to enterprice gdb, sde or gds? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1072803#M6271</link>
    <description>&lt;P&gt;In the realm of ArcGIS, connecting to a 'Server' in catalog or Pro means connecting to an ArcGIS Server which is considered part of an enterprise.&amp;nbsp; SDE is actually an outdated term as it has been replaced with Enterprise Geodatabase (EGDB).&lt;/P&gt;&lt;P&gt;If you are connecting to an EGDB, I suggest creating a connection file. Keep it somewhere and always refer to that path and file name in python.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
arcpy.env.workspace = r'DriveLetter:\path\to\your\ConnectionFile.sde'
ws = arcpy.env.workspace
fc = f'{ws}\yourFeatureClassName'&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 25 Jun 2021 20:41:47 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2021-06-25T20:41:47Z</dc:date>
    <item>
      <title>ArcPy access to enterprice gdb, sde or gds?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1072787#M6270</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I have question regarding using arcpy to access to enterprice geodatabase. According to my research, the enterprice gdb is defined with a sde file on harddrive and I can just use the filepath of this sde as the workspace to access to this gdb. I have been doing this for a number of sql gdb and it works fine for me. The steps are as followings:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create/define a Database Connection in ArcCatelog, this will create a sde file&lt;/LI&gt;&lt;LI&gt;Using the filepath of sde file for the workspace for arcpy code. For example:&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;ws =&amp;nbsp;&lt;SPAN&gt;"C:&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Users&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;user&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;AppData&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Roaming&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;ESRI&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Desktop10.8&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;ArcCatalog&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;myGDB.sde"&lt;BR /&gt;&lt;/SPAN&gt;layerPath = ws + &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;featureclassrName&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;desc &lt;/SPAN&gt;= arcpy.dDescribe(layerPath)&lt;BR /&gt;gdb_df = pd.DataFrame.spatial.from_featureclass(layerPath)&lt;/PRE&gt;&lt;P&gt;However, I encountered an Enterprice gdb server that is not defined with sde, rather, it is defined with gds. For example,&amp;nbsp;"C:\\Users\\user\\AppData\\Roaming\\ESRI\\Desktop10.8\\ArcCatalog\\myGDB.gds". If I use this file path for ArcPy, it will return "Cannot open file" msg.&lt;/P&gt;&lt;P&gt;So, my question is, how to access Enterprice Geodatabase Server define with *.gds file? Do I have to created Database Connection in ArcCatelog instead of Database Server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot and have a nice weekend!&lt;/P&gt;&lt;P&gt;Ming&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 20:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1072787#M6270</guid>
      <dc:creator>MingHome</dc:creator>
      <dc:date>2021-06-25T20:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy access to enterprice gdb, sde or gds?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1072803#M6271</link>
      <description>&lt;P&gt;In the realm of ArcGIS, connecting to a 'Server' in catalog or Pro means connecting to an ArcGIS Server which is considered part of an enterprise.&amp;nbsp; SDE is actually an outdated term as it has been replaced with Enterprise Geodatabase (EGDB).&lt;/P&gt;&lt;P&gt;If you are connecting to an EGDB, I suggest creating a connection file. Keep it somewhere and always refer to that path and file name in python.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
arcpy.env.workspace = r'DriveLetter:\path\to\your\ConnectionFile.sde'
ws = arcpy.env.workspace
fc = f'{ws}\yourFeatureClassName'&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 25 Jun 2021 20:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1072803#M6271</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-06-25T20:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy access to enterprice gdb, sde or gds?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1072809#M6272</link>
      <description>&lt;P&gt;Hi Ming, I'm not very familiar with this subject, but apparently .gds files are used to store connection information to database servers.&amp;nbsp; Check out the documentation here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/database-servers/overview-database-servers.htm" target="_blank" rel="noopener"&gt;https://desktop.arcgis.com/en/arcmap/latest/manage-data/database-servers/overview-database-servers.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first recommendation would be to try to open it in ArcCatalog.&amp;nbsp; It probably behaves just like an .sde connection.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 20:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1072809#M6272</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2021-06-25T20:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy access to enterprice gdb, sde or gds?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1072810#M6273</link>
      <description>&lt;P&gt;Thanks Joe for your prompt reply! I will give a try next week.&lt;/P&gt;&lt;P&gt;Regarding "&lt;SPAN&gt;creating a connection file", do you mean create a database connection in ArcCatelog (this will create a connection.sde file), or, write a sde file by my self. If the later, can you share a link about how or a sample?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ming&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 20:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1072810#M6273</guid>
      <dc:creator>MingHome</dc:creator>
      <dc:date>2021-06-25T20:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy access to enterprice gdb, sde or gds?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1072812#M6274</link>
      <description>&lt;P&gt;Check the online help here on connection files:&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/create-arcsde-connection-file.htm" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/create-arcsde-connection-file.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 20:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1072812#M6274</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-06-25T20:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy access to enterprice gdb, sde or gds?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1073174#M6279</link>
      <description>&lt;P&gt;Thanks to Joe and Nathan!&lt;/P&gt;&lt;P&gt;It seam that ArcPy access to EGDB via Database Connection (SDE file). Therefore, a connectionFile.sde has to be made either with ArcCatelog, or ArcTool, or command:&lt;/P&gt;&lt;PRE&gt;CreateArcSDEConnectionFile()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks!&lt;/P&gt;&lt;P&gt;Ming&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 13:56:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-access-to-enterprice-gdb-sde-or-gds/m-p/1073174#M6279</guid>
      <dc:creator>MingHome</dc:creator>
      <dc:date>2021-06-28T13:56:42Z</dc:date>
    </item>
  </channel>
</rss>

