<?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: Accessing Data in Remote SDE in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540189#M42228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That is half correct. In your case you have created a sde connection file which is a recognized workspace type. Whether or not it actually references a valid database connection is irrelevant to the tool.&lt;BR /&gt;&lt;BR /&gt;Running an &lt;SPAN style="font-family:Lucida Console;"&gt;&lt;STRONG&gt;arcpy.ListFeatureClasses()&lt;/STRONG&gt;&lt;/SPAN&gt; on an invalid sde connection will return an empty list.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Great. More undocumented features... I can't think of a single reason why you would not want an error raised if you execute a function on an invalid parameter. Isn't that the purpose of try/except...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyways, this is getting away from my original purpose.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need ideas on how to access a remote instance of SDE from one cloud server to another.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that creating a connection file would work, but how do I test it, more importantly how do the input parameters need to be structured?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jan 2014 20:54:01 GMT</pubDate>
    <dc:creator>KeithSandell1</dc:creator>
    <dc:date>2014-01-21T20:54:01Z</dc:date>
    <item>
      <title>Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540179#M42218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have separate App and DB servers on Azure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to run a python script on the App server that accesses an SDE featureclass on the DB server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The python script was written on the DB server so it had direct access to SDE, but it needs to reside on the App server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically need to change something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdeFC = r"C:\SDE_Connection.sde\DB.dbo.FeatureClass"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdeFC = r"&amp;lt;remote db server&amp;gt;\SDE_Connection.sde\DB.dbo.FeatureClass"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---Suggestions on how to accomplish this?---&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 01:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540179#M42218</guid>
      <dc:creator>KeithSandell1</dc:creator>
      <dc:date>2014-01-21T01:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540180#M42219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The way i normally do this would be by opening arcCatalog on the App server, and setting up a connection to the SDE that is on the DB server. ( I am assuming they are on the same network?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That way, your syntax would stay exactly the same. Whatever you name the connection in arcCatalog is what you put into your python script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For me, it would be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdeFC = r"Database Connections\Connection to DB.sde\DB.dbo.FeatureClass"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(the easiest way to get the proper syntax is to set up a dummy modelbuilder tool on the APP server using data from the DB SDE, then exporting to python... copy and paste away :cool: )&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 01:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540180#M42219</guid>
      <dc:creator>AndrewHaley</dc:creator>
      <dc:date>2014-01-21T01:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540181#M42220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That would be the easiest thing to do, but I can't install Desktop on the App server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used arcpy.management.CreateDatabaseConnection to make a connection file on the App server. The script successfully created the .sde file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To test it I set the connection file as a workspace and ran arcpy.ListFeatureClasses() against it. It did not raise any errors, but it also did not return any featureclasses that are in SDE.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 09:50:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540181#M42220</guid>
      <dc:creator>KeithSandell1</dc:creator>
      <dc:date>2014-01-21T09:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540182#M42221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;To test it I set the connection file as a workspace and ran arcpy.ListFeatureClasses() against it. It did not raise any errors, but it also did not return any featureclasses that are in SDE.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post this code?&amp;nbsp; Did you include error checking in a try/except block?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 11:20:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540182#M42221</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2014-01-21T11:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540183#M42222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The code was just something benign like this. I run it from IDLE and it completes without raising an error, but also without printing any featureclass names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy

sdeConn = r"&amp;lt;connection file&amp;gt;" ##this is the one that was created with arcpy.management.CreateDatabaseConnection

arcpy.env.workspace = sdeConn

for fc in arcpy.ListFeatureClasses():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the absence of try/except IDLE should raise any error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540183#M42222</guid>
      <dc:creator>KeithSandell1</dc:creator>
      <dc:date>2021-12-11T23:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540184#M42223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The code was just something benign like this. I run it from IDLE and it completes without raising an error, but also without printing any featureclass names.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy

sdeConn = r"&amp;lt;connection file&amp;gt;" ##this is the one that was created with arcpy.management.CreateDatabaseConnection

arcpy.env.workspace = sdeConn

for fc in arcpy.ListFeatureClasses():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;In the absence of try/except IDLE should raise any error.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am unfamiliar with attempting to access items from a particular schema like you are "DB.sde\DB.dbo.FeatureClass".&amp;nbsp; Have you tried to ListFeatureClasses() with just the .sde connection alone?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;sdeFC = r"&amp;lt;remote db server&amp;gt;\SDE_Connection.sde"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:25:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540184#M42223</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-11T23:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540185#M42224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am unfamiliar with attempting to access items from a particular schema like you are "DB.sde\DB.dbo.FeatureClass".&amp;nbsp; Have you tried to ListFeatureClasses() with just the .sde connection alone?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What you reference was just an example of accessing a FeatureClass directly, just as you would from a FGDB, i.e. C:\FGDB.gdb\FeatureClass. When you do the same thing in SDE the path includes the DB connection file + the DB + the schema + the featureclass name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But that is all really irrelevant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm just trying to find a way to have python on one cloud server access an SDE instance on another cloud server, presumably using a connection file I can create on the non-SDE server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a connection file like this and tested it. It worked in the sense that it did not raise an error, but it also did not give me the result I was expecting.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 13:17:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540185#M42224</guid>
      <dc:creator>KeithSandell1</dc:creator>
      <dc:date>2014-01-21T13:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540186#M42225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What you reference was just an example of accessing a FeatureClass directly, just as you would from a FGDB, i.e. C:\FGDB.gdb\FeatureClass. When you do the same thing in SDE the path includes the DB connection file + the DB + the schema + the featureclass name.&lt;BR /&gt;&lt;BR /&gt;But that is all really irrelevant.&lt;BR /&gt;&lt;BR /&gt;I'm just trying to find a way to have python on one cloud server access an SDE instance on another cloud server, presumably using a connection file I can create on the non-SDE server.&lt;BR /&gt;&lt;BR /&gt;I created a connection file like this and tested it. It worked in the sense that it did not raise an error, but it also did not give me the result I was expecting.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Right, I assumed you are attempting to access the .ListFeatureClasses() with "DB connection file + the DB" and not "DB connection file + the DB + the schema + the featureclass name".&amp;nbsp; That is,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;sdeFC = r"&amp;lt;remote db server&amp;gt;\SDE_Connection.sde"
for fc in arcpy.ListFeatureClasses():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;sdeFC = r"&amp;lt;remote db server&amp;gt;\SDE_Connection.sde\DB.dbo.FeatureClass"
for fc in arcpy.ListFeatureClasses():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540186#M42225</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-11T23:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540187#M42226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Do this:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;sdeFC = r"&amp;lt;remote db server&amp;gt;\SDE_Connection.sde"
for fc in arcpy.ListFeatureClasses():
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am doing that to read featureclasses from SDE. The script would surely error out if I tried to read featureclasses from something that is not a workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My ultimate goal is not to use ListFeatureClasses(), but to just access a featureclass directly to execute a SearchCursor, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I only used the ListFeatureClasses function to test the connection file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The nature of the prior example was to differentiate between connecting to a local featureclass and a remote featureclass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdeFC = r"C:\SDE_Connection.sde\DB.dbo.FeatureClass"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdeFC = r"&amp;lt;remote db server&amp;gt;\SDE_Connection.sde\DB.dbo.FeatureClass"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wherein I need to somehow get my script to see that this data is on a remote server. In theory the connection file would contain this information, but from testing the connection file I do not believe it is working correctly because it is not returning expected results even though it is not erring out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:26:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540187#M42226</guid>
      <dc:creator>KeithSandell1</dc:creator>
      <dc:date>2021-12-11T23:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540188#M42227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The script would surely error out if I tried to read featureclasses from something that is not a workspace.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is half correct. In your case you have created a sde connection file which is a recognized workspace type. Whether or not it actually references a valid database connection is irrelevant to the tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running an &lt;/SPAN&gt;&lt;SPAN style="font-family:Lucida Console;"&gt;&lt;STRONG&gt;arcpy.ListFeatureClasses()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; on an invalid sde connection will return an empty list.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 16:57:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540188#M42227</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2014-01-21T16:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540189#M42228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That is half correct. In your case you have created a sde connection file which is a recognized workspace type. Whether or not it actually references a valid database connection is irrelevant to the tool.&lt;BR /&gt;&lt;BR /&gt;Running an &lt;SPAN style="font-family:Lucida Console;"&gt;&lt;STRONG&gt;arcpy.ListFeatureClasses()&lt;/STRONG&gt;&lt;/SPAN&gt; on an invalid sde connection will return an empty list.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Great. More undocumented features... I can't think of a single reason why you would not want an error raised if you execute a function on an invalid parameter. Isn't that the purpose of try/except...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyways, this is getting away from my original purpose.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need ideas on how to access a remote instance of SDE from one cloud server to another.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that creating a connection file would work, but how do I test it, more importantly how do the input parameters need to be structured?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 20:54:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540189#M42228</guid>
      <dc:creator>KeithSandell1</dc:creator>
      <dc:date>2014-01-21T20:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540190#M42229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It depends on the securities you have. Can you just reference the file system of your remote DB server? Have you referenced your remote DB on your application server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you gone through these steps? I'm assuming you are using SQL Server based on your naming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//015400000613000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//015400000613000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 21:37:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540190#M42229</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2014-01-21T21:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Data in Remote SDE</title>
      <link>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540191#M42230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It depends on the securities you have. Can you just reference the file system of your remote DB server? Have you referenced your remote DB on your application server?&lt;BR /&gt;&lt;BR /&gt;Have you gone through these steps? I'm assuming you are using SQL Server based on your naming.&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//015400000613000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//015400000613000000&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE has been register with the instance of ArcGIS Server on the app server and I assumed that any connection string would need to make reference to the server on which the instance is running, but alas I found that it was not all the difficult and I'm ashamed to say it was actually brutally simple.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just dug into the system files on the DB server and copied the connection file from the DB server and dropped it on the app server and it worked!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was sure there was no way ArcGIS Server was that smart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It just doesn't seem logical that you could copy a local copy of a file that references something on the same server, drop it somewhere else and have it work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, problem solved, lesson learned. It always helps to bounce stuff off other folks, thanks for letting me abuse you all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 23:52:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/accessing-data-in-remote-sde/m-p/540191#M42230</guid>
      <dc:creator>KeithSandell1</dc:creator>
      <dc:date>2014-01-21T23:52:10Z</dc:date>
    </item>
  </channel>
</rss>

