<?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>idea SQL comment at beginning of database view in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-comment-at-beginning-of-database-view/idi-p/1194120</link>
    <description>&lt;P&gt;When creating a database view in an Oracle EGDB using the Create Database View GP tool:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I can successfully create a view if there isn't a comment at the beginning of the SQL query:&lt;/P&gt;&lt;PRE&gt;select 1 as unique_id from dual --a comment&lt;/PRE&gt;&lt;P&gt;But I can't create a view if there &lt;U&gt;&lt;EM&gt;is&lt;/EM&gt;&lt;/U&gt;&amp;nbsp;a comment at the beginning of the SQL query, like this:&lt;/P&gt;&lt;PRE&gt; --a comment&lt;BR /&gt;select 1 as unique_id from dual&lt;/PRE&gt;&lt;P&gt;When I move the cursor out of the View Definition textbox, then the SQL is automatically changed to be single-line:&lt;/P&gt;&lt;PRE&gt; --a comment select 1 as unique_id from dual&lt;/PRE&gt;&lt;P&gt;Which makes the SQL invalid (Oracle probably thinks the SQL is one big comment).&lt;/P&gt;&lt;PRE&gt;ERROR 999999: Something unexpected caused the tool to fail. &lt;BR /&gt;Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and &lt;BR /&gt;refer to the error help for potential solutions or workarounds.&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;[ORA-00928: missing SELECT keyword]&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;DBMS table not found [ORA-04043: object A_TEST_VW does not exist] [a_test_vw]&lt;BR /&gt;Failed to execute (CreateDatabaseView).&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Could Pro be enhanced so that we can put SQL comments at the beginning of database views?&lt;/P&gt;&lt;P&gt;Or put differently, could Pro be enhanced so that it doesn't automatically convert the SQL to be a single line (don't remove line breaks).&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2022 19:36:33 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-07-20T19:36:33Z</dc:date>
    <item>
      <title>SQL comment at beginning of database view</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sql-comment-at-beginning-of-database-view/idi-p/1194120</link>
      <description>&lt;P&gt;When creating a database view in an Oracle EGDB using the Create Database View GP tool:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I can successfully create a view if there isn't a comment at the beginning of the SQL query:&lt;/P&gt;&lt;PRE&gt;select 1 as unique_id from dual --a comment&lt;/PRE&gt;&lt;P&gt;But I can't create a view if there &lt;U&gt;&lt;EM&gt;is&lt;/EM&gt;&lt;/U&gt;&amp;nbsp;a comment at the beginning of the SQL query, like this:&lt;/P&gt;&lt;PRE&gt; --a comment&lt;BR /&gt;select 1 as unique_id from dual&lt;/PRE&gt;&lt;P&gt;When I move the cursor out of the View Definition textbox, then the SQL is automatically changed to be single-line:&lt;/P&gt;&lt;PRE&gt; --a comment select 1 as unique_id from dual&lt;/PRE&gt;&lt;P&gt;Which makes the SQL invalid (Oracle probably thinks the SQL is one big comment).&lt;/P&gt;&lt;PRE&gt;ERROR 999999: Something unexpected caused the tool to fail. &lt;BR /&gt;Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and &lt;BR /&gt;refer to the error help for potential solutions or workarounds.&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;[ORA-00928: missing SELECT keyword]&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;DBMS table not found [ORA-04043: object A_TEST_VW does not exist] [a_test_vw]&lt;BR /&gt;Failed to execute (CreateDatabaseView).&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Could Pro be enhanced so that we can put SQL comments at the beginning of database views?&lt;/P&gt;&lt;P&gt;Or put differently, could Pro be enhanced so that it doesn't automatically convert the SQL to be a single line (don't remove line breaks).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 19:36:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sql-comment-at-beginning-of-database-view/idi-p/1194120</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-07-20T19:36:33Z</dc:date>
    </item>
  </channel>
</rss>

