<?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: Version access level via SQL in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/version-access-level-via-sql/m-p/880185#M6697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The access level of the version is stored in the table's status column. To work with this column you would need to know a version that is public, private, protected so you can identify the status number for each.&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/system-tables-sqlserver.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/system-tables-sqlserver.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;System tables of a geodatabase in SQL Server—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="versions.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/190451_versions.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you are planning on using CreateVersion_management, an easier approach would be to use the Data Access module to list the version objects. Then you can use the version access property.&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/data-access/listversions.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/data-access/listversions.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;ListVersions—Data Access module | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/data-access/version.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/data-access/version.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Version—Data Access module | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

oldgdb = 'Database Connections\old.sde'
newgdb = 'Database Connections\new.sde'

for ver in arcpy.da.ListVersions(oldgdb):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateVersion_management(newgdb, ver.parentVersionName, ver.name, ver.access)
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 11:06:13 GMT</pubDate>
    <dc:creator>ChristianWells</dc:creator>
    <dc:date>2021-12-12T11:06:13Z</dc:date>
    <item>
      <title>Version access level via SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/version-access-level-via-sql/m-p/880184#M6696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I know, via SQL, the access level of a Version (Public, Private or Protected)? I took a look to the VERSIONS table but I can't figure how to obtain this info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to replicate the same version structure in a new geodatabase and I would like to create dynamically the "CreateVersion_Management..." arcpy commands using the info. in the SDE GDB tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jesús de Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 14:17:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/version-access-level-via-sql/m-p/880184#M6696</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-03-09T14:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Version access level via SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/version-access-level-via-sql/m-p/880185#M6697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The access level of the version is stored in the table's status column. To work with this column you would need to know a version that is public, private, protected so you can identify the status number for each.&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/system-tables-sqlserver.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/system-tables-sqlserver.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;System tables of a geodatabase in SQL Server—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="versions.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/190451_versions.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you are planning on using CreateVersion_management, an easier approach would be to use the Data Access module to list the version objects. Then you can use the version access property.&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/data-access/listversions.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/data-access/listversions.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;ListVersions—Data Access module | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/data-access/version.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/data-access/version.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Version—Data Access module | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

oldgdb = 'Database Connections\old.sde'
newgdb = 'Database Connections\new.sde'

for ver in arcpy.da.ListVersions(oldgdb):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateVersion_management(newgdb, ver.parentVersionName, ver.name, ver.access)
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/version-access-level-via-sql/m-p/880185#M6697</guid>
      <dc:creator>ChristianWells</dc:creator>
      <dc:date>2021-12-12T11:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Version access level via SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/version-access-level-via-sql/m-p/880186#M6698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values in STATUS field in VERSIONS table change once a reconclie/post has been done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/190447_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;However, arcpy version object works fine for me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jesús de Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 23:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/version-access-level-via-sql/m-p/880186#M6698</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-03-09T23:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Version access level via SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/version-access-level-via-sql/m-p/880187#M6699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad this worked for you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 00:05:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/version-access-level-via-sql/m-p/880187#M6699</guid>
      <dc:creator>ChristianWells</dc:creator>
      <dc:date>2016-03-10T00:05:36Z</dc:date>
    </item>
  </channel>
</rss>

