Select to view content in your preferred language

Script to automatically copy local GDB to ArcSDE

2969
11
09-29-2011 12:44 PM
ScottBodien
New Contributor
Hello, I am looking for a script or help in automating the process of daily copying over a file GDB on my local C drive to a ArcSDE server in our organization.  Am using 10.


Thanks!
Scott
0 Kudos
11 Replies
847396730
Frequent Contributor

The checkout replica is created from an mxd with all of the data to be "checked-out" sourced to SDE.  I'm guessing the mxd you're using right now is sourced to the file geodatabase.

You need to get the fgdb data into SDE first, then create your check-out replica.  Consider the Extract Data tool for this: ArcGIS Desktop

You're in a little bit of a pickle.  The immediate problem will be best solved with either Extract Data, or replacing the SDE feature classes with the fgdb feature classes, or using python to delete the existing SDE records and replace them with the fgdb feature class records.  None are pretty, each have good and bad sides, but checkouts will help you after this step is done.

0 Kudos
afafabbas
Deactivated User

Great thanks Marianne, I will give it a try this way and update you hopefully with good news.

Regards,

Afaf

0 Kudos