Hi Everyone,
I am looking for a python script which should be able to register data as versioned without the option to move edits to base for all the feature classes inside the feature dataset, tables.
Regards,
Ranjit
here is basic syntax to enable versioning
<SPAN class="comment token"># Import system modules</SPAN> <SPAN class="keyword token">import</SPAN> arcpy <SPAN class="comment token"># Set local variables</SPAN> datasetName <SPAN class="operator token">=</SPAN> <SPAN class="string token">"c:/Connections/ninefour@gdb.sde/ninefour.GDB.ctgFuseFeature"</SPAN> <SPAN class="comment token"># Execute RegisterAsVersioned</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>RegisterAsVersioned_management<SPAN class="punctuation token">(</SPAN>datasetName<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"NO_EDITS_TO_BASE"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
regards.
amri
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.