Using list functions to migrate from personal geodatabases to file geodatabases


PurposeA common conversion task is the large-scale transfer of data from one format to another. This sample takes advantage of ListWorkspaces, ListFeatureClasses, ListTables, and ListDatasets to identify the personal geodatabases in a folder and converts the feature datasets, feature classes, and tables of each to file geodatabases.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Change the workspace paths to a local workspace containing personal geodatabases.
  2. Compile and run the project.

GeodatabaseConversion/ToFileGDB.cs Source file containing code to convert a personal geodatabase to a file geodatabase.
Download the C# files
GeodatabaseConversion/ToFileGDB.vb Source file containing code to convert a personal geodatabase to a file geodatabase.
Download the VB.NET files

Download the files for all languages

See Also:

How to list data




Development licensing Deployment licensing
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced
Engine Developer Kit Engine