<?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 arcpy to get properties of OLE DB to Access database in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-to-get-properties-of-ole-db-to-access/m-p/47351#M3778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created an OLE DB connection to an Access database in ArcCatalog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Data Link properties, I entered in the Connection tab the path to my database: "c:\Users\Tom\myDB.mdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I renamed the connection is ArcCatalog to "RDS_TMC.odc".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcMap, using arcpy, I need to retrieve from the "RDS_TMC.odc" the path and database to which the connection refers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; desc = arcpy.Describe(r"Database Connections\RDS_TMC.odc")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; print desc.workspaceType&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RemoteDatabase&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; print desc.connectionProperties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;geoprocessing describe data object object at 0x2B6AAF38&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; cp = desc.connectionProperties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; print cp.database&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;type 'exceptions.RuntimeError'&amp;gt;: DescribeData: Method database does not exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I need to know the method or attribute to get the path and database that is stored somewhere in the "RDS_TMC.odc" file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea which method applies?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2012 07:59:04 GMT</pubDate>
    <dc:creator>TomDe_Leus</dc:creator>
    <dc:date>2012-06-11T07:59:04Z</dc:date>
    <item>
      <title>arcpy to get properties of OLE DB to Access database</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-to-get-properties-of-ole-db-to-access/m-p/47351#M3778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created an OLE DB connection to an Access database in ArcCatalog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Data Link properties, I entered in the Connection tab the path to my database: "c:\Users\Tom\myDB.mdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I renamed the connection is ArcCatalog to "RDS_TMC.odc".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcMap, using arcpy, I need to retrieve from the "RDS_TMC.odc" the path and database to which the connection refers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; desc = arcpy.Describe(r"Database Connections\RDS_TMC.odc")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; print desc.workspaceType&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RemoteDatabase&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; print desc.connectionProperties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;geoprocessing describe data object object at 0x2B6AAF38&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; cp = desc.connectionProperties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; print cp.database&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;type 'exceptions.RuntimeError'&amp;gt;: DescribeData: Method database does not exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I need to know the method or attribute to get the path and database that is stored somewhere in the "RDS_TMC.odc" file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea which method applies?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 07:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-to-get-properties-of-ole-db-to-access/m-p/47351#M3778</guid>
      <dc:creator>TomDe_Leus</dc:creator>
      <dc:date>2012-06-11T07:59:04Z</dc:date>
    </item>
  </channel>
</rss>

