Select to view content in your preferred language

Best way to update an SDE version with feature classes from a GDB

2171
1
07-10-2015 06:35 AM
NicoleFrankenfield
Deactivated User

I have just completed a script to "download" SDE feature classes to a GDB/Dataset for the purpose of exporting to GPS Trimble for field verifications. I am now working on a script to "upload"/update my version of the SDE with the feature classes in the edited GDB.

Any tips? arcpy.Append_management?? The kicker is it can't append to the default... it needs to replace the feature classes in the SDE version.

Thanks in advance all!!

0 Kudos
1 Reply
AsrujitSengupta
Deactivated User

When you run the append, it doesn't really "replace the feature class" in any of the versions. Its just modifies the records for that feature class in that version.

Basically, if you are planning to script the process, make sure that the sde database connection you are using, is connected to the Version you want.

You can connect to the desired version by:

  • Right-clicking on the sde database connection> Geodatabase Connection Properties> Choose the correct version from the list (for 10.1 and above)
  • Right-clicking on the sde database connection> Connection Properties> Change to the desired version

GeodatabaseManaging Data