<?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 Re: Use a sde connection file to read future class, database tables from a SQL server in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/use-a-sde-connection-file-to-read-future-class/m-p/1590568#M11185</link>
    <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;thank you for your reply.&lt;BR /&gt;The problem was after I uploaded my sde file in my content of the portal, I still had to sync the layers. Which I was unaware off.&lt;/P&gt;&lt;P&gt;So, after clicking on the button "sync layers" all my layers became visible and accessible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TheSecondDude_0-1740729058308.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126629i02E5172DE46DB775/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TheSecondDude_0-1740729058308.png" alt="TheSecondDude_0-1740729058308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2025 07:55:21 GMT</pubDate>
    <dc:creator>TheSecondDude</dc:creator>
    <dc:date>2025-02-28T07:55:21Z</dc:date>
    <item>
      <title>Use a sde connection file to read future class, database tables from a SQL server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/use-a-sde-connection-file-to-read-future-class/m-p/1587488#M11168</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new to using our brand-new python notebook server (in Arcgis Enterprise portal).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So in the past when I was using ArcGis pro I used my sde connection (SQL Server) which had a list of all my database tables, enterprise geodatabase future class,....&lt;/P&gt;&lt;P&gt;And I wanted to easily connect again to my data so I followed the steps here to use my sde connection &lt;A href="https://enterprise.arcgis.com/en/portal/latest/use/add-data-store-item.htm" target="_blank" rel="noopener"&gt;https://enterprise.arcgis.com/en/portal/latest/use/add-data-store-item.htm&lt;/A&gt; I successfully uploaded the sde file on the content of the Enterprise portal so it's now available as a Data Store.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So now in the notebook I can drag it and will automatic generate (I replaced some sensitive data with *):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Item Added From Toolbar
# Title: GIS_one | Type: Data Store | Owner: ******
item = gis.content.get("***********")
item&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my question is how can I open my data store (sde) so I can see the enterprise geodatabase future class, database tables, ... like I could see in ArcGis Pro when I opened my sde connection.&lt;BR /&gt;so I can edit or read my enterprise geodatabase future class.&lt;BR /&gt;&lt;BR /&gt;thx&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 14:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/use-a-sde-connection-file-to-read-future-class/m-p/1587488#M11168</guid>
      <dc:creator>TheSecondDude</dc:creator>
      <dc:date>2025-02-20T14:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use a sde connection file to read future class, database tables from a SQL server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/use-a-sde-connection-file-to-read-future-class/m-p/1587536#M11171</link>
      <description>&lt;P&gt;Are you asking how to connect to your sde using python?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Set up connection
sdeTempPath = tempfile.mkdtemp()
connect = arcpy.management.CreateDatabaseConnection(
    sdeTempPath,
    'ConnName.sde',
    'SQL_SERVER',
    'INSTANCE',
    'DATABASE_AUTH',
    'USER',
    'PASSWORD',
    'SAVE_USERNAME',
    'DataBase'
)

# Use a temporary workspace
arcpy.env.workspace = os.path.join(sdeTempPath, "ConnName.sde")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 16:48:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/use-a-sde-connection-file-to-read-future-class/m-p/1587536#M11171</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2025-02-20T16:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use a sde connection file to read future class, database tables from a SQL server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/use-a-sde-connection-file-to-read-future-class/m-p/1590568#M11185</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;thank you for your reply.&lt;BR /&gt;The problem was after I uploaded my sde file in my content of the portal, I still had to sync the layers. Which I was unaware off.&lt;/P&gt;&lt;P&gt;So, after clicking on the button "sync layers" all my layers became visible and accessible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TheSecondDude_0-1740729058308.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126629i02E5172DE46DB775/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TheSecondDude_0-1740729058308.png" alt="TheSecondDude_0-1740729058308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 07:55:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/use-a-sde-connection-file-to-read-future-class/m-p/1590568#M11185</guid>
      <dc:creator>TheSecondDude</dc:creator>
      <dc:date>2025-02-28T07:55:21Z</dc:date>
    </item>
  </channel>
</rss>

