<?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 Update Describe to handle connection strings in Python Ideas</title>
    <link>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idi-p/1417029</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I would like to be able to use a &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-database-connection-string.htm" target="_self"&gt;database connection&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN&gt;to get workspace properties from&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/workspace-properties.htm" target="_self" rel="nofollow noopener noreferrer"&gt;Describe&lt;/A&gt;&lt;SPAN&gt;. Using Pro 3.1.3, accessing any of the workspace properties everything results in&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;OSError: "CIMDATA=&amp;lt;CIMStandardDataConnection xsi:type=&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;...rest of connection string&lt;/EM&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;" does not&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;exist&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;If I'm building paths to layers and tables in a script, I sometimes use Describe to get workspace information from one layer to build another. It's also helpful in debugging.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's a &lt;A href="https://community.esri.com/t5/python-questions/describe-workspace-properties-don-t-work-from/m-p/1416800#M70489" target="_self"&gt;question discussion&lt;/A&gt; for reference.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2024 14:27:32 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2024-04-30T14:27:32Z</dc:date>
    <item>
      <title>Update Describe to handle connection strings</title>
      <link>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idi-p/1417029</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I would like to be able to use a &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-database-connection-string.htm" target="_self"&gt;database connection&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN&gt;to get workspace properties from&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/workspace-properties.htm" target="_self" rel="nofollow noopener noreferrer"&gt;Describe&lt;/A&gt;&lt;SPAN&gt;. Using Pro 3.1.3, accessing any of the workspace properties everything results in&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;OSError: "CIMDATA=&amp;lt;CIMStandardDataConnection xsi:type=&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;...rest of connection string&lt;/EM&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;" does not&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;exist&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;If I'm building paths to layers and tables in a script, I sometimes use Describe to get workspace information from one layer to build another. It's also helpful in debugging.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's a &lt;A href="https://community.esri.com/t5/python-questions/describe-workspace-properties-don-t-work-from/m-p/1416800#M70489" target="_self"&gt;question discussion&lt;/A&gt; for reference.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 14:27:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idi-p/1417029</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2024-04-30T14:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update Describe to handle connection strings - Status changed to: Closed</title>
      <link>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1479629#M319</link>
      <description>&lt;P&gt;Thank you for submitting your idea to describe connection strings using ArcPy's Describe methods. We appreciate your suggestion and the time you took to provide detailed feedback. ArcPy Describe is designed to work with data sources (direct paths to data) and ArcPy objects, but not with arbitrary strings. Dealing with arbitrary strings would add significant overhead. To get the description of a database connection, please continue&amp;nbsp;using the result of&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-database-connection.htm" target="_blank"&gt;Create Database Connection (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;or an existing .sde file. After careful consideration, we regret to inform you that we will not be implementing this idea at this time.&lt;/P&gt;&lt;P&gt;Thank you again for your contribution and understanding.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 16:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1479629#M319</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2024-05-28T16:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Update Describe to handle connection strings</title>
      <link>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1553562#M375</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/50334"&gt;@HannesZiegler&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;I understand why this idea was closed, but I think you might consider to add the ability to use a connection string with the&amp;nbsp;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;management&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreateDatabaseConnection method. Otherwise, I dont understand what could be the utility of the connection string at all. I dont find any documentation about how to use a connection string and many arcpy function I have try juste does not works with connection string.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 21:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1553562#M375</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2024-10-29T21:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update Describe to handle connection strings - Status changed to: Needs Clarification</title>
      <link>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1607353#M461</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/118250"&gt;@MaximeDemers&lt;/a&gt;, thanks for the response.&amp;nbsp;I did a bit of investigation here and wanted to check back in to see if the current software meets your needs. &amp;nbsp;&lt;/P&gt;&lt;P&gt;You requested the ability to use a connection string as input to Describe so that you could retrieve workspace level information. &amp;nbsp;I do see this functionality existing in ArcGIS Pro 3.4. &amp;nbsp;Can you share what version you are currently operating in? &amp;nbsp;I've included a code sample below that shows how I get workspace info from a connection string. Is this the functionality that you are requesting?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;platform = &amp;lt;dmbs_pltform&amp;gt;
instance = &amp;lt;instance_name&amp;gt;
account_authentication = &amp;lt;auth_type&amp;gt;
username = &amp;lt;user_name&amp;gt;
password = &amp;lt;password&amp;gt;
database = &amp;lt;database_name&amp;gt;
object_name = &amp;lt;dataset_name&amp;gt;

result = arcpy.management.CreateDatabaseConnectionString(
    platform, 
    instance 
    account_authentication, 
    username, 
    password, 
    database, 
    object_name
)
wksp_object = arcpy.Describe(result).workspace
 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 17:49:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1607353#M461</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2025-04-21T17:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Update Describe to handle connection strings</title>
      <link>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1608906#M462</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/604859"&gt;@SSWoodward&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for your reply. I am glad this functionnality was added in the latest ArcGIS Pro release.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 14:04:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1608906#M462</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2025-04-24T14:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Update Describe to handle connection strings - Status changed to: Closed</title>
      <link>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1620174#M479</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/118250"&gt;@MaximeDemers&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/604859"&gt;@SSWoodward&lt;/a&gt;, closing this idea again as per conversation above&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 18:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1620174#M479</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2025-06-02T18:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Update Describe to handle connection strings</title>
      <link>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1635041#M498</link>
      <description>&lt;P&gt;I was hoping to add a comment to this idea, despite it being closed, because all the context is already right here...&lt;/P&gt;&lt;P&gt;I think there's great value in being able to generate a connection string to a workspace (e.g. an enterprise geodatabase) WITHOUT specifying a particular object in that geodatabase.&amp;nbsp; It could then be used later on in the script as a general purpose workspace object, without having to actually point to, or construct a database connection file somewhere on disk.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/604859"&gt;@SSWoodward&lt;/a&gt;&amp;nbsp;your sample script above only works if the "object_name" parameter is specified.&amp;nbsp; If the object_name is omitted, the Describe statement does not recognize the connection string as a valid workspace.&amp;nbsp; So, in one case, Describe recognizes the connection string, but in the other, it does not.&amp;nbsp; So, the Describe command seems to be OK working with a CIMStandardDataConnection xml string , but only when that string points to a specific object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 16:31:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1635041#M498</guid>
      <dc:creator>JC_LAURENCE</dc:creator>
      <dc:date>2025-07-22T16:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update Describe to handle connection strings</title>
      <link>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1635084#M499</link>
      <description>&lt;P&gt;Thanks for the ping&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/540086"&gt;@JC_LAURENCE&lt;/a&gt;.&amp;nbsp;I totally understand your request.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Database connection strings are strings used to connect to a specific dataset within a database.&amp;nbsp; Whether that be a feature dataset, feature class or table. It seems like your Idea is to allow for a string or memory SDE connection to a whole geodatabase.&amp;nbsp; That's different enough from the idea were in now that it would be best to open a new idea for that functionality.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 17:07:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1635084#M499</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2025-07-22T17:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Update Describe to handle connection strings</title>
      <link>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1635103#M500</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/540086"&gt;@JC_LAURENCE&lt;/a&gt;,&amp;nbsp;I share your thoughts on this. Please comment back here if you open a new idea.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 17:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/update-describe-to-handle-connection-strings/idc-p/1635103#M500</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2025-07-22T17:56:39Z</dc:date>
    </item>
  </channel>
</rss>

