I would like to add a specific table or shape file to my TOC via the ArcMap python window from the SDE connection I'm currently connected to. Since I'm already connected to the SDE connection in ArcMap I'm assuming I don't have to restate the user name and password in the python script right? How would I going about doing this?

1 Answer 1


Welcome to the site! You should check out the faq for info on how to best get your questions answered. Searching for keywords related to your question before asking might point you to the answer you're looking for.

On to your question:

If you set your workspace to your SDE connection file you can access features within. This post covers the process well.

  • @user12325, can I ask you how did you solve? I was not able to find any answer to your question.. thanks. Commented Mar 1, 2013 at 16:22
  • @AnnalisaMinelli the feedback provided by mdenedetti helped me save my issue, pretty much just make a connection to your data source and then connect to the table or layer of interest.
    – lemuel
    Commented Mar 25, 2013 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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