AnsweredAssumed Answered

How to find and change the SDE version -  pWorkspace.FindVersion

Question asked by jsn on Jan 16, 2019

Hello everyone,


I need to change the default version to another version that is editable.


How can I check  if the version exists, ad also to change version from Default to my editor's version in pWorkspace and pFeatureWorkspace.


I assume I have to use pWorkspace.FindVersion to check if the version exists, but how I change Default to the ew one?



path_to_SDE_Connection_File = "Database Connections\SQLEditors.sde"


pWorkspace = pWorkspaceFactory.OpenFromFile(path_to_SDE_Connection_File, 0)


pFeatureWorkspace = pWorkspaceFactory.OpenFromFile(prefixOutput, 0)