<?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: Database.GetQueryDescription returns the wrong table in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/database-getquerydescription-returns-the-wrong/m-p/777813#M948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you connect to the Database in the first place? &amp;nbsp;Does the username that you used have access to schema1? &amp;nbsp;When you call Database.GetTableNames(), do both tables appear in the returned list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Apr 2019 15:41:19 GMT</pubDate>
    <dc:creator>RichRuh</dc:creator>
    <dc:date>2019-04-05T15:41:19Z</dc:date>
    <item>
      <title>Database.GetQueryDescription returns the wrong table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/database-getquerydescription-returns-the-wrong/m-p/777812#M947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to everybody!!&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Pro version 2.3.2 and ArcGIS PRO SDK version 2.3.0.15769 to create a CIMSqlQueryDataConnection to be used in the creation of a FeatureLayer. The data are stored in a PostGIS database, the DB contains two schema named schema1 and schema2, inside those schemas I have placed two table with the same name so that we have:&lt;/P&gt;&lt;P&gt;PostGISDB&lt;/P&gt;&lt;P&gt;|&lt;/P&gt;&lt;P&gt;|_schema1&lt;/P&gt;&lt;P&gt;| |_table&lt;/P&gt;&lt;P&gt;|&lt;/P&gt;&lt;P&gt;|_schema2&lt;/P&gt;&lt;P&gt;|_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I invoke GetQueryDescription("PostGISDB.schema1.table") using the fully qualified name of the table the function returns the information related to the table "PostGISDB.schema2.table" instead of the information related to "PostGISDB.schema1.table"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hint?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 14:18:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/database-getquerydescription-returns-the-wrong/m-p/777812#M947</guid>
      <dc:creator>MarioD_Amico</dc:creator>
      <dc:date>2019-04-05T14:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Database.GetQueryDescription returns the wrong table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/database-getquerydescription-returns-the-wrong/m-p/777813#M948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you connect to the Database in the first place? &amp;nbsp;Does the username that you used have access to schema1? &amp;nbsp;When you call Database.GetTableNames(), do both tables appear in the returned list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 15:41:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/database-getquerydescription-returns-the-wrong/m-p/777813#M948</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2019-04-05T15:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Database.GetQueryDescription returns the wrong table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/database-getquerydescription-returns-the-wrong/m-p/777814#M949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for my delayed answer, I'm using the following code to connect to the Dabase:&lt;/P&gt;&lt;P&gt;this.databaseConnectionProperties = new DatabaseConnectionProperties(EnterpriseDatabaseType.PostgreSQL)&lt;BR /&gt; {&lt;BR /&gt; AuthenticationMode = AuthenticationMode.DBMS,&lt;BR /&gt; Database = databaseName,&lt;BR /&gt; User = userID,&lt;BR /&gt; Password = password,&lt;BR /&gt; Instance = host&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;this.database = new Database(this.databaseConnectionProperties);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user has access to both the schemas and both the tables are returned by&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Database.GetTableNames(),&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 12:20:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/database-getquerydescription-returns-the-wrong/m-p/777814#M949</guid>
      <dc:creator>MarioD_Amico</dc:creator>
      <dc:date>2019-05-02T12:20:25Z</dc:date>
    </item>
  </channel>
</rss>

