<?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 Using ArcSDESQLExecute to query multiple SDE database on the same server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-arcsdesqlexecute-to-query-multiple-sde/m-p/131415#M10203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just started to use ArcSDESQLExecute not long ago, and have only used it to run query on one sde database. I've been trying to used ArcSDESQLExecute to run query on two sde database on the same server with a simple sql statement like the followling without much success (the sql statement ran in microsoft sql server management studio without problem).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from database1.schema1.table1 as a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;INNER JOIN database2.schema2.table2 as b&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ON a.columm1 = b.column1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where a.column2 like 'x%' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, I'm writing to see if ArcSDESQLExecute has that capability, and if so, how to go about setting it up. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried creating two seperate objects for each sde database, but I dont' know how to pass the SQL statement to both databases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;J&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2012 21:42:42 GMT</pubDate>
    <dc:creator>JiaxinYu</dc:creator>
    <dc:date>2012-04-02T21:42:42Z</dc:date>
    <item>
      <title>Using ArcSDESQLExecute to query multiple SDE database on the same server</title>
      <link>https://community.esri.com/t5/python-questions/using-arcsdesqlexecute-to-query-multiple-sde/m-p/131415#M10203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just started to use ArcSDESQLExecute not long ago, and have only used it to run query on one sde database. I've been trying to used ArcSDESQLExecute to run query on two sde database on the same server with a simple sql statement like the followling without much success (the sql statement ran in microsoft sql server management studio without problem).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from database1.schema1.table1 as a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;INNER JOIN database2.schema2.table2 as b&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ON a.columm1 = b.column1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where a.column2 like 'x%' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, I'm writing to see if ArcSDESQLExecute has that capability, and if so, how to go about setting it up. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried creating two seperate objects for each sde database, but I dont' know how to pass the SQL statement to both databases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;J&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 21:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcsdesqlexecute-to-query-multiple-sde/m-p/131415#M10203</guid>
      <dc:creator>JiaxinYu</dc:creator>
      <dc:date>2012-04-02T21:42:42Z</dc:date>
    </item>
  </channel>
</rss>

