Where are stored the SDE connection files?

11603
3
09-05-2012 11:35 AM
JoseSanchez
Occasional Contributor III
Hi all

I would like to store in my C drive a SDE connection file and call it in a python scrip.

For example

MyConnection = "C:\\<mypath>\\<myconnectionfile>.sde"

How can I do that?

thanks
0 Kudos
3 Replies
EricRice
Esri Regular Contributor
Hi Jose,

You can run Create ArcSDE Connection File tool.

Best,
Eric
MathewCoyle
Frequent Contributor
SDE connection files are stored by default in your application data profile directory.

10.0
os.path.join(os.getenv("APPDATA"), r"ESRI\Desktop10.0\ArcCatalog")


You can copy these to whatever directory you would like.
0 Kudos
JoseSanchez
Occasional Contributor III
Hi all

SDE Conenction files for ArcGIS 9.3.1 are stored on the server and in my workstation at this location:

C:\Users\<userid>\AppData\Roaming\ESRI\ArcCatalog