<?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 SQL comment in WITH clause in mobile GDB database view in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/sql-comment-in-with-clause-in-mobile-gdb-database/m-p/1279064#M68019</link>
    <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.1.1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;When creating a database view in a mobile geodatabase using the Create Database View geoprocessing tool:&lt;/P&gt;&lt;P&gt;The GP tool doesn't seem to allow SQL comments in the WITH clause (aka the CTE - Common Table Expression).&lt;/P&gt;&lt;PRE&gt;WITH cte AS (SELECT 1 as objectid ) &lt;FONT color="#0000FF"&gt;--test SQL comment&lt;/FONT&gt; &lt;BR /&gt;SELECT * FROM cte&lt;BR /&gt;&lt;BR /&gt;ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.&lt;BR /&gt;Underlying DBMS error[incomplete input]&lt;BR /&gt;DBMS table not found [DBMS table not found] [main.a_test_vw]&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1681621259159.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68112i85C0BDBECD71DB1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1681621259159.png" alt="Bud_0-1681621259159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Whereas I &lt;U&gt;&lt;EM&gt;can&lt;/EM&gt;&lt;/U&gt;&amp;nbsp;put comments elsewhere in the query, such as in the main SELECT:&lt;/P&gt;&lt;PRE&gt;WITH cte AS (SELECT 1 as objectid ) &lt;BR /&gt;SELECT * FROM cte &lt;FONT color="#0000FF"&gt;--test SQL comment&lt;/FONT&gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that a known issue?&lt;/P&gt;&lt;P&gt;Note: I don't have this problem when creating the view in the mobile GDB using a SQL Client like DBeaver. I only have the problem when creating the view in ArcGIS Pro.&lt;/P&gt;</description>
    <pubDate>Sun, 16 Apr 2023 05:09:10 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-04-16T05:09:10Z</dc:date>
    <item>
      <title>SQL comment in WITH clause in mobile GDB database view</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sql-comment-in-with-clause-in-mobile-gdb-database/m-p/1279064#M68019</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.1.1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;When creating a database view in a mobile geodatabase using the Create Database View geoprocessing tool:&lt;/P&gt;&lt;P&gt;The GP tool doesn't seem to allow SQL comments in the WITH clause (aka the CTE - Common Table Expression).&lt;/P&gt;&lt;PRE&gt;WITH cte AS (SELECT 1 as objectid ) &lt;FONT color="#0000FF"&gt;--test SQL comment&lt;/FONT&gt; &lt;BR /&gt;SELECT * FROM cte&lt;BR /&gt;&lt;BR /&gt;ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.&lt;BR /&gt;Underlying DBMS error[incomplete input]&lt;BR /&gt;DBMS table not found [DBMS table not found] [main.a_test_vw]&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1681621259159.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68112i85C0BDBECD71DB1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1681621259159.png" alt="Bud_0-1681621259159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Whereas I &lt;U&gt;&lt;EM&gt;can&lt;/EM&gt;&lt;/U&gt;&amp;nbsp;put comments elsewhere in the query, such as in the main SELECT:&lt;/P&gt;&lt;PRE&gt;WITH cte AS (SELECT 1 as objectid ) &lt;BR /&gt;SELECT * FROM cte &lt;FONT color="#0000FF"&gt;--test SQL comment&lt;/FONT&gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that a known issue?&lt;/P&gt;&lt;P&gt;Note: I don't have this problem when creating the view in the mobile GDB using a SQL Client like DBeaver. I only have the problem when creating the view in ArcGIS Pro.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2023 05:09:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sql-comment-in-with-clause-in-mobile-gdb-database/m-p/1279064#M68019</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-16T05:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL comment in WITH clause in mobile GDB database view</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sql-comment-in-with-clause-in-mobile-gdb-database/m-p/1286336#M68854</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Esri Case #03318359 - SQL comment in WITH clause in mobile GDB database view&lt;BR /&gt;(the title was changed afterwards to:&amp;nbsp;&lt;EM&gt;ArcGIS Pro 3.1.1 - Comment within SQL Expression in View Definition parameter causes Create Database View GP tool to fail&lt;/EM&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ENH-000158089: Request for support for trying comments within an SQL expression for the "View Definition" field in the "Create Database View" Geoprocessing tool&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 23:49:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sql-comment-in-with-clause-in-mobile-gdb-database/m-p/1286336#M68854</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-05-05T23:49:27Z</dc:date>
    </item>
  </channel>
</rss>

