<?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: find out the list of versioned feature classes or Dataset. in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29423#M1569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem with using SQL in pre-10.0 databases to query this information is that the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; same query won't work in 10.x instances.&amp;nbsp; Both ArcObjects and Python can generate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lists of feature datasets and the feature classes within them in a release-independent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;manner.&amp;nbsp; You'd have to poll each FC to deterimine if it was versioned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are forums dedicated to both ArcObjects and Python where you could pursue the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;details for each, but be sure to specify your ArcGIS version and service pack, so they&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can give you the most appropriate "best" solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2012 10:11:43 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2012-05-21T10:11:43Z</dc:date>
    <item>
      <title>find out the list of versioned feature classes or Dataset.</title>
      <link>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29422#M1568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a ArcSDE Geodatabase and have n number of dataset and layers, Its really huge.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to find out the list of versioned feature classes or Dataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to query the SDE syetem tables and find?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help is really appreciated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Antony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 08:15:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29422#M1568</guid>
      <dc:creator>AntonyPaul_M1</dc:creator>
      <dc:date>2012-05-21T08:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: find out the list of versioned feature classes or Dataset.</title>
      <link>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29423#M1569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem with using SQL in pre-10.0 databases to query this information is that the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; same query won't work in 10.x instances.&amp;nbsp; Both ArcObjects and Python can generate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lists of feature datasets and the feature classes within them in a release-independent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;manner.&amp;nbsp; You'd have to poll each FC to deterimine if it was versioned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are forums dedicated to both ArcObjects and Python where you could pursue the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;details for each, but be sure to specify your ArcGIS version and service pack, so they&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can give you the most appropriate "best" solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 10:11:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29423#M1569</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-05-21T10:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: find out the list of versioned feature classes or Dataset.</title>
      <link>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29424#M1570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The problem with using SQL in pre-10.0 databases to query this information is that the&lt;BR /&gt; same query won't work in 10.x instances.&amp;nbsp; Both ArcObjects and Python can generate&lt;BR /&gt;lists of feature datasets and the feature classes within them in a release-independent&lt;BR /&gt;manner.&amp;nbsp; You'd have to poll each FC to deterimine if it was versioned.&lt;BR /&gt;&lt;BR /&gt;There are forums dedicated to both ArcObjects and Python where you could pursue the&lt;BR /&gt;details for each, but be sure to specify your ArcGIS version and service pack, so they&lt;BR /&gt;can give you the most appropriate "best" solution.&lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the Reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently in&amp;nbsp; ArcGIS 9.3 and Oracle 10g&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Antony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 01:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29424#M1570</guid>
      <dc:creator>AntonyPaul_M1</dc:creator>
      <dc:date>2012-05-22T01:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: find out the list of versioned feature classes or Dataset.</title>
      <link>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29425#M1571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got python script to find out all the verioned feature classes inside the Geodatabase. It works for me so I thought of sharing it with you guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import sys, string, os, arcgisscripting, logging

log_File = "c:\\Documents and Settings\\apaul\\desktop\\sde_dataset_versioning.log"

# Set up log file
logger = logging.getLogger('myapp')
hdlr = logging.FileHandler(log_File)
formatter = logging.Formatter('%(message)s')
hdlr.setFormatter(formatter)
logger.addHandler(hdlr)
logger.setLevel(logging.INFO)

gp = arcgisscripting.create(9.3)
gp.workspace = "C:\\Documents and Settings\\apaul\\\desktop\\sde_con.sde"

fds = gp.ListDatasets()

for fd in fds:
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.workspace = "C:\\Documents and Settings\\apaul\\\desktop\\sde_con.sde\\%s" % fd
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcs = gp.ListFeatureClasses()
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc1 = fcs[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = gp.Describe(fc1).IsVersioned
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fd,desc
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info('%s %s'%(fd,desc))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; except:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29425#M1571</guid>
      <dc:creator>AntonyPaul_M1</dc:creator>
      <dc:date>2021-12-10T21:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: find out the list of versioned feature classes or Dataset.</title>
      <link>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29426#M1572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The indent scheme is hyper-important in Python.&amp;nbsp; Please edit your solution so&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it will work.&amp;nbsp; It would also be a good idea to &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/48475-Please-read-How-to-post-Python-code"&gt;post in a CODE block&lt;/A&gt;&lt;SPAN&gt;, so the text&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is more legible (fixed-width font) -- use the "#" in the editor widgits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 10:13:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29426#M1572</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-05-23T10:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: find out the list of versioned feature classes or Dataset.</title>
      <link>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29427#M1573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi antony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe you can used this add-in &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=218fb05252cd4746be21b9565f648b5b"&gt;List versioned data&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this help you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fred&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 11:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/find-out-the-list-of-versioned-feature-classes-or/m-p/29427#M1573</guid>
      <dc:creator>FrédéricPRALLY</dc:creator>
      <dc:date>2012-05-25T11:33:59Z</dc:date>
    </item>
  </channel>
</rss>

