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

222
0
01-16-2019 10:06 AM
JoseSanchez
Occasional Contributor III

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)

Thanks

0 Kudos
0 Replies