<?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: SDE - SQL where is Dataset info stored in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/sde-sql-where-is-dataset-info-stored/m-p/797829#M2469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find the Feature Dataset information from the "GDB_" tables. You will have to do a few table joins to get the wanted information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Feature_dataset_storage/002n0000007p000000/" title="http://resources.arcgis.com/en/help/main/10.1/index.html#/Feature_dataset_storage/002n0000007p000000/"&gt;ArcGIS Help 10.1&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2015 18:35:55 GMT</pubDate>
    <dc:creator>SamuelTompsett</dc:creator>
    <dc:date>2015-04-10T18:35:55Z</dc:date>
    <item>
      <title>SDE - SQL where is Dataset info stored</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sde-sql-where-is-dataset-info-stored/m-p/797828#M2468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to track down a table that stores the Dataset info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following this post, &lt;A href="https://community.esri.com/thread/122015"&gt;How to determine current edit session locking a version?&lt;/A&gt;​&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;I'm trying something similar, but want to trace the tables back to their Dataset. How can I add to this query to do that? I can't seem to find Dataset info anywhere in the sql tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;v.name as version_name,&lt;/P&gt;&lt;P&gt;pri.owner as data_owner,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;tr.table_name,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;tl.*&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM sde.sde_versions v&amp;nbsp; &lt;/P&gt;&lt;P&gt;JOIN sde.SDE_state_locks sl ON sl.state_id = v.state_id&amp;nbsp; &lt;/P&gt;&lt;P&gt;JOIN sde.SDE_process_information pri ON pri.sde_id = sl.sde_id&amp;nbsp; &lt;/P&gt;&lt;P&gt;JOIN sde.sde_table_locks tl ON tl.sde_id = pri.sde_id&amp;nbsp; &lt;/P&gt;&lt;P&gt;JOIN sde.sde_table_registry tr ON tr.registration_id = tl.registration_id&amp;nbsp; &lt;/P&gt;&lt;P&gt;order by lock_time desc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 18:12:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sde-sql-where-is-dataset-info-stored/m-p/797828#M2468</guid>
      <dc:creator>DaveOrlando</dc:creator>
      <dc:date>2015-04-10T18:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: SDE - SQL where is Dataset info stored</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sde-sql-where-is-dataset-info-stored/m-p/797829#M2469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find the Feature Dataset information from the "GDB_" tables. You will have to do a few table joins to get the wanted information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Feature_dataset_storage/002n0000007p000000/" title="http://resources.arcgis.com/en/help/main/10.1/index.html#/Feature_dataset_storage/002n0000007p000000/"&gt;ArcGIS Help 10.1&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 18:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sde-sql-where-is-dataset-info-stored/m-p/797829#M2469</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2015-04-10T18:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: SDE - SQL where is Dataset info stored</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sde-sql-where-is-dataset-info-stored/m-p/797830#M2470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be this link for SQL Server:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Feature_dataset_storage/002q00000072000000/" title="http://resources.arcgis.com/en/help/main/10.1/index.html#/Feature_dataset_storage/002q00000072000000/"&gt;ArcGIS Help 10.1&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 18:49:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sde-sql-where-is-dataset-info-stored/m-p/797830#M2470</guid>
      <dc:creator>SamuelTompsett</dc:creator>
      <dc:date>2015-04-10T18:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: SDE - SQL where is Dataset info stored</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sde-sql-where-is-dataset-info-stored/m-p/797831#M2471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the query I wrote to list Feature Classes and their associated Datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select items_a.Name as FeatureClass, items_b.Name as DataSet&lt;/P&gt;&lt;P&gt;from sde.GDB_ITEMS items_a&lt;/P&gt;&lt;P&gt;join sde.GDB_ITEMRELATIONSHIPS rels on rels.DestID = items_a.UUID&lt;/P&gt;&lt;P&gt;join sde.GDB_ITEMS items_b on items_b.UUID = rels.OriginID&lt;/P&gt;&lt;P&gt;join sde.GDB_ITEMTYPES types_a on types_a.UUID = items_a.Type&lt;/P&gt;&lt;P&gt;join sde.GDB_ITEMTYPES types_b on types_b.UUID = items_b.Type&lt;/P&gt;&lt;P&gt;where types_a.Name = 'Feature Class' and types_b.Name = 'Feature Dataset'&lt;/P&gt;&lt;P&gt;order by DataSet, FeatureClass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I have to combine it with the query at the top to just list the data that is causing locks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 22:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sde-sql-where-is-dataset-info-stored/m-p/797831#M2471</guid>
      <dc:creator>DaveOrlando</dc:creator>
      <dc:date>2015-04-10T22:18:29Z</dc:date>
    </item>
  </channel>
</rss>

