<?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>idea Use ArcPy to Determine Underlying Database in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idi-p/963551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It would be nice if the arcpy Describe function would return the database name you are connected to. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; print arcpy.Describe(r"c:\temp\scratch.gdb").databaseName&lt;BR /&gt;File Geodatabase&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;print arcpy.Describe(r"c:\temp\someconnection.sde").databaseName&lt;BR /&gt;Oracle&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;print arcpy.Describe(r"c:\temp\someconnection.sde").databaseName&lt;BR /&gt;PostGRESql&lt;BR /&gt;&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;This would really help in developing the slight SQL differences between databases in handling of specific datatypes.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;

&lt;!-- content transformation source ID: 087E00000005Fll --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2014 17:06:14 GMT</pubDate>
    <dc:creator>AndrewChapkowski</dc:creator>
    <dc:date>2014-08-28T17:06:14Z</dc:date>
    <item>
      <title>Use ArcPy to Determine Underlying Database</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idi-p/963551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It would be nice if the arcpy Describe function would return the database name you are connected to. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; print arcpy.Describe(r"c:\temp\scratch.gdb").databaseName&lt;BR /&gt;File Geodatabase&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;print arcpy.Describe(r"c:\temp\someconnection.sde").databaseName&lt;BR /&gt;Oracle&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;print arcpy.Describe(r"c:\temp\someconnection.sde").databaseName&lt;BR /&gt;PostGRESql&lt;BR /&gt;&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;This would really help in developing the slight SQL differences between databases in handling of specific datatypes.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;

&lt;!-- content transformation source ID: 087E00000005Fll --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 17:06:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idi-p/963551</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2014-08-28T17:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Use ArcPy to Determine Underlying Database</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/963552#M8386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your examples you could craft a routine to tell you this information&lt;BR /&gt;anything ending in a gdb will be file geodatabase&lt;BR /&gt;do a describe on a sde connection and look at the instance will tell you that database it is based on the connection string &amp;nbsp;e.g.&lt;/P&gt;

&lt;UL&gt;&lt;LI&gt;&lt;I&gt;sde:sqlserver:svr-gis-01&lt;/I&gt;&amp;nbsp; is SQL server&lt;/LI&gt;&lt;LI&gt;&lt;I&gt;sde:oracle11g:GISDATA&lt;/I&gt;&amp;nbsp; is Oracle 11g&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;

&lt;PRE class="ckeditor_codeblock"&gt;
desc = arcpy.Describe(Database Connections\Localhost SQL.sde)
cp = desc.connectionProperties
print cp.instance
&amp;gt; &lt;SPAN style=""&gt;sde:sqlserver:svr-gis-01&lt;/SPAN&gt;&lt;/PRE&gt;

&lt;P&gt;The only issue I see are the old style SDE connection where the instance will be a port number.&lt;/P&gt;

&lt;!-- content transformation source ID: 00aE0000008ACxE --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 11:02:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/963552#M8386</guid>
      <dc:creator>MatthewYager</dc:creator>
      <dc:date>2014-10-14T11:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use ArcPy to Determine Underlying Database - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/1387663#M28745</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We're working on this!&amp;nbsp; This status does not guarantee that the functionality will be in the next release, but development work has begun. Release cycles vary by product so make sure to check&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.esri.com/en/other-resources/product-life-cycle" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN&gt;product&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;life cycle information&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to get an idea of when to expect the next release.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 19:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/1387663#M28745</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2024-02-27T19:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use ArcPy to Determine Underlying Database - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/1432391#M30084</link>
      <description>&lt;P&gt;This is implemented in ArcGIS Pro 3.3. See &lt;A href="https://community.esri.com/t5/arcgis-ideas-blog/your-ideas-in-arcgis-pro-3-3/bc-p/1431910" target="_blank"&gt;Your Ideas in ArcGIS Pro 3.3&lt;/A&gt; for a full list of all user ideas you can look forward to! And be sure to check out the &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/announcements/whats-new-in-arcgis-pro-3-3/" target="_blank"&gt;release blog&lt;/A&gt; and what’s new &lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm" target="_blank"&gt;help topic and video&lt;/A&gt; to learn more about all the new features and functionality in the release.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 16:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/1432391#M30084</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2024-05-10T16:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use ArcPy to Determine Underlying Database</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/1604192#M34422</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/50334"&gt;@HannesZiegler&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/129401"&gt;@KoryKramer&lt;/a&gt;&amp;nbsp;- could you elaborate on how this was implemented? I am not seeing this in the describe object still at 3.4 and don't see any mention of it in the linked release blog or help topic. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 14:35:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/1604192#M34422</guid>
      <dc:creator>philnagel</dc:creator>
      <dc:date>2025-04-09T14:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Use ArcPy to Determine Underlying Database</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/1604268#M34423</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/276319"&gt;@philnagel&lt;/a&gt;&amp;nbsp;Apologies, we didn't cover this properly when we closed the idea, the underlying database can be identified using the&amp;nbsp;&lt;SPAN&gt;dbClient property of connectionProperties when describing SDE workspaces:&amp;nbsp;&lt;A href="https://prodev.arcgis.com/en/pro-app/3.3/arcpy/functions/workspace-properties.htm" target="_blank" rel="noopener"&gt;Workspace properties—ArcGIS Pro | Documentation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;desc = arcpy.Describe("C:\\...\\mydb.sde")&lt;BR /&gt;print(desc.connectionProperties.dbClient)&lt;/PRE&gt;&lt;P&gt;Would return the one of the following for SDE workspaces:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;FileGDB&lt;BR /&gt;Sqlite&lt;BR /&gt;sqlserver&lt;BR /&gt;oracle&lt;BR /&gt;postgresql&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 17:19:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/1604268#M34423</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2025-04-09T17:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Use ArcPy to Determine Underlying Database</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/1604282#M34424</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/50334"&gt;@HannesZiegler&lt;/a&gt;&amp;nbsp;Thank you - I do see those entries now in the docs. What threw me for a loop was that it does not get included when using arcpy.da.Describe.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on that? Is that a bug?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="philnagel_0-1744220399814.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/129804i78D7C4F3E5289E99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="philnagel_0-1744220399814.png" alt="philnagel_0-1744220399814.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 17:40:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/1604282#M34424</guid>
      <dc:creator>philnagel</dc:creator>
      <dc:date>2025-04-09T17:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use ArcPy to Determine Underlying Database</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/1605307#M34454</link>
      <description>&lt;P&gt;Yea that is an issue, there is an idea for it here:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/arcpy-da-describe-should-return-the-same-data-as/idi-p/1322358" target="_blank"&gt;arcpy.da.Describe should return the same data as a... - Esri Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can upvote (kudo) it, we keep tabs on ideas (this one is already under consideration)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 18:24:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/use-arcpy-to-determine-underlying-database/idc-p/1605307#M34454</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2025-04-11T18:24:07Z</dc:date>
    </item>
  </channel>
</rss>

