I would like to be able to read connection properties from an sde file without any Esri dependencies such as Arcpy, ArcObjects etc. Is this possible?

  • You can with arcobjects. – Kirk Kuykendall Jan 14 '19 at 16:37
  • @KirkKuykendall just updated my question. I cant use any esri dependencies. – its30 Jan 14 '19 at 16:40
  • 2
    You can certainly read it. It's less likely that you'll successfully reverse-engineer it. Decrypting the password will be the sticking point. – Vince Jan 14 '19 at 18:11
  • If you have the connection parameters then you should not use .sde. If you don't have the connection parameters, I don't think that you would be able to decrypt the password that is stored in the encrypted .sde file. This was a product of ArcSDE which is an ESRI proprietary software. – enolan Jan 14 '19 at 19:55
  • 1
    No, the connection file is not "a product of ArcSDE". Connection files were always an ArcObjects-managed entity. – Vince Jan 14 '19 at 21:07

A simple hex dump of an .sde string using a program like HxD shows that most of the connection properties are available. It would be left up to the programmer to reverse engineer the structure. As long as the connection string does not store a password it should be possible. e.g. Hex Dump Example

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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