<?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 &amp;quot;Database Connections&amp;quot; path in standalone script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/quot-database-connections-quot-path-in-standalone/m-p/1660106#M74808</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a inherited an old standalone python script that I'm trying to update, and it has the following line...&lt;/P&gt;&lt;LI-CODE lang="c"&gt;sde_prcls = r"Database Connections\prod.sde\GISSDE.GISDO.parcels"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What the heck is the start of that path, "Database Connections" referring to?&amp;nbsp; The SDE connection files are stored within project folders and user data, but nothing explicitly labeled "Database Connections", as far as I can tell.&lt;/P&gt;&lt;P&gt;The script runs correctly, and I'm all about "if it ain't broke...", but I'd be curious as to what exactly is going on here, and whether it is something that ought to be replaced following best practices.&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Oct 2025 18:42:24 GMT</pubDate>
    <dc:creator>DORPAD</dc:creator>
    <dc:date>2025-10-23T18:42:24Z</dc:date>
    <item>
      <title>"Database Connections" path in standalone script</title>
      <link>https://community.esri.com/t5/python-questions/quot-database-connections-quot-path-in-standalone/m-p/1660106#M74808</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a inherited an old standalone python script that I'm trying to update, and it has the following line...&lt;/P&gt;&lt;LI-CODE lang="c"&gt;sde_prcls = r"Database Connections\prod.sde\GISSDE.GISDO.parcels"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What the heck is the start of that path, "Database Connections" referring to?&amp;nbsp; The SDE connection files are stored within project folders and user data, but nothing explicitly labeled "Database Connections", as far as I can tell.&lt;/P&gt;&lt;P&gt;The script runs correctly, and I'm all about "if it ain't broke...", but I'd be curious as to what exactly is going on here, and whether it is something that ought to be replaced following best practices.&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 18:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/quot-database-connections-quot-path-in-standalone/m-p/1660106#M74808</guid>
      <dc:creator>DORPAD</dc:creator>
      <dc:date>2025-10-23T18:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: "Database Connections" path in standalone script</title>
      <link>https://community.esri.com/t5/python-questions/quot-database-connections-quot-path-in-standalone/m-p/1660198#M74812</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;"Database Connections" is a virtual path used by ArcMap/ArcCatalog. It's an alias for the user's specific profile folder where .sde files are stored, typically: C:\Users\&amp;lt;YourUsername&amp;gt;\AppData\Roaming\ESRI\Desktop10.x\ArcCatalog [1]&lt;/P&gt;&lt;P&gt;Even though it works, I'm replacing it. It's a fragile "anti-pattern" because it's:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;User-Dependent: Fails for any other user.&lt;/LI&gt;&lt;LI&gt;Version-Dependent: Breaks when ArcGIS is upgraded.&lt;/LI&gt;&lt;LI&gt;Obscure: Hard to debug and deploy.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'll be switching to an explicit&amp;nbsp; path to the .sde file accessible to the script.&lt;/P&gt;&lt;P&gt;[1] &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/databases/database-connections-desktop.htm" target="_blank" rel="noopener"&gt;https://desktop.arcgis.com/en/arcmap/latest/manage-data/databases/database-connections-desktop.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 20:27:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/quot-database-connections-quot-path-in-standalone/m-p/1660198#M74812</guid>
      <dc:creator>StefanSimon</dc:creator>
      <dc:date>2025-10-23T20:27:31Z</dc:date>
    </item>
  </channel>
</rss>

