Select to view content in your preferred language

how can i export data to personal geodatabase

1814
8
12-26-2017 10:03 PM
MunaAlajmi
Emerging Contributor

hello 

Im GIS developer i want some one to help me in writing code in VB.NET   to  export an sde feature class to personal geodatabase 

i have a layer in arcmap that come from sdedatabase i want to export it to personal geodatabase 

Thanks 

MMGIS

0 Kudos
8 Replies
DanPatterson_Retired
MVP Emeritus

What version of ArcMap and arcsde, in case it matters, since personal geodatabases indicate older versions

0 Kudos
XanderBakker
Esri Esteemed Contributor

Is it really necessary to export to a Personal Geodatabase (.mdb)? This format is really old and Esri recommends to move towards the File Geodatabase. I did find a "museum piece" of code based on VB6 that shows how to do this conversion. I'm sure you can port it to VB.Net: Copying a feature dataset from an ArcSDE geodatabase to a personal geodatabase 

0 Kudos
TedKowal
Honored Contributor

File Geodatabase is not compatible with anything outside of ESRI!  A Personal Geodatabase can be read from almost any other application. 

Please vote on keeping this option within Pro  https://community.esri.com/ideas/12662 

0 Kudos
MunaAlajmi
Emerging Contributor

hello thanks a lot for your help

not it not necessary to personal....  it  is OK even to export to file geodatabase

0 Kudos
MunaAlajmi
Emerging Contributor

ArcMap  10.3.1

sde 10.3.1

0 Kudos
DanPatterson_Retired
MVP Emeritus

The question becomes, why are you having to use vb.net for older software, when there are builtin tools within the arc* suite that don't require any coding what-so-ever.  Perhaps you can elaborate on why your focus is so limiting

MunaAlajmi
Emerging Contributor

Because i was developing add Inn application with certain tools and commands  over arcmap and i want to develop add inn command in my toolbar that will help end user to export a layer to personal geodatabase or file geodatabase so user can use it in his work .. actually the end user are not  a gis user who know how to work with  ArcMap they want to click button to export map without  any interaction from their side 

0 Kudos
ModyBuchbinder
Esri Regular Contributor

Hi

If you need to write a code for ArcMap you should open a post in the ArcObjects community.

In ArcObjects code you can call any GP tool easily, this is the best way in most cases.

here: arcobjects-sdk-community-samples/Net/Geoprocessing/GPGeodatabaseConversion at master · Esri/arcobjec...  you can find an example of using GP tools for conversion of data. I think it is almost what you need.

Have Fun

Mody