<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Connecting to SDE in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/connecting-to-sde/m-p/213238#M7296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This code is creating an sde connection file correctly but when I try and get a list of the feature classes it says that there are 0, which is not the case.&amp;nbsp; What am I doing wrong to get a connection to SDE in python?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateArcSDEConnectionFile_management(folderName, fileName, serverName, serviceName, databaseName, authType, username, password, saveUserInfo, versionName, saveVersionInfo)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = "C:/temp/gpCon.sde"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;fcs = arcpy.ListFeatureClasses()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for fc in fcs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Dec 2010 21:12:58 GMT</pubDate>
    <dc:creator>BrianGustafson</dc:creator>
    <dc:date>2010-12-06T21:12:58Z</dc:date>
    <item>
      <title>Connecting to SDE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/connecting-to-sde/m-p/213238#M7296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This code is creating an sde connection file correctly but when I try and get a list of the feature classes it says that there are 0, which is not the case.&amp;nbsp; What am I doing wrong to get a connection to SDE in python?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateArcSDEConnectionFile_management(folderName, fileName, serverName, serviceName, databaseName, authType, username, password, saveUserInfo, versionName, saveVersionInfo)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = "C:/temp/gpCon.sde"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;fcs = arcpy.ListFeatureClasses()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for fc in fcs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 21:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/connecting-to-sde/m-p/213238#M7296</guid>
      <dc:creator>BrianGustafson</dc:creator>
      <dc:date>2010-12-06T21:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to SDE</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/connecting-to-sde/m-p/213239#M7297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;try arcpy.env.workspace&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 22:53:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/connecting-to-sde/m-p/213239#M7297</guid>
      <dc:creator>LoganPugh</dc:creator>
      <dc:date>2010-12-06T22:53:09Z</dc:date>
    </item>
  </channel>
</rss>

