Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I would like to make an exact copy (domains, feature datasets, feature classes, etc.) of an SDE database to a file geodatabase.

I have tried several possibilities, including:

  1. using the Copy (Data Management) process
  2. creating a new GDB and manually copying each feature dataset from the SDE
  3. exporting an xml workspace document from the SDE and importing it into the GDB

The Copy_management process does not seem like it would work for copying an SDE to a GDB, since the input and output data types must match.

The process of importing each feature dataset into a new GDB could probably be automated using Copy_management as well by iterating through each feature dataset, though it seems this could cause problems of an incomplete copy if there was an error with one of the processes.

Exporting and importing xml workspaces seems to work, though this process creates incredibly large files when the process is used on large geodatabases.

Is there a more straightforward way to copy the contents and schema of an SDE to a GDB than the ways mentioned, in a way that can be automated?

If not, are there any reasons that the above possibilities should not be used in this process?

share|improve this question
1  
Related: gis.stackexchange.com/q/63368/753 –  blah238 Jul 31 '13 at 17:39

2 Answers 2

up vote 3 down vote accepted

The only way you can get a true copy of the data (domains, datasets, relationships, etc) is to use the manual copy and paste method inside catalog. ESRI has not yet given us the ability to transfer this data over any other way with a single operation that can be scripted easily.

I have a nightly process that copies my two primary SDE Databases to file geodatabases for Continuity of Operations. This is so that in the event of an emergency my staff has some data to work with until my IT shop can rebuild my SDE from backup. After much trial and error I have decided we can live with the limitations of using FeatureClassToFeatureClass_conversion and TableToTable_conversion to transfer our data over every night.

Yes, we lose some of the functionality of the geodatabase but it will now run unattended at night and is ready to go as soon as I get it. In my case the only functionality that we are truly missing (assuming operating under an emergency mode) is that my relationship classes are broken because the conversion resets the ObjectIDs that link the two tables.

Until ESRI gives us more options you will have to look at what are you willing to sacrifice at the moment; time and effort or functionality?

share|improve this answer

If you have admin privileges you can use simple copy and paste commands to export or import sde to file geo-database vise versa and Have a look at here for more details.

Hope this helpful.!

share|improve this answer
    
Thanks Ganeshnarim - I would like to automate the process using Python, so any manual copy/paste process in ArcCatalog would not fit my needs. I have also had limited success with this method, as it seems (in ArcMap 10.1) copying an SDE simply creates another link to the same database (whereas if this same technique were used on a file or personal geodatabase, a copy would be made) –  Krausers Aug 8 '13 at 12:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.