<?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 Division symbol not working in CreateDatabaseView SQL in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/division-symbol-not-working-in-createdatabaseview/m-p/1113909#M47490</link>
    <description>&lt;P&gt;I'm trying to create a database view using the CreateDatabaseView tool. The SQL statement includes a forward slash as a division symbol and it appears to be causing an error. For simplicity let's say "&lt;STRONG&gt;SELECT 5/2 as x&lt;/STRONG&gt;". The SQL statement is valid and when I change from division to any other math operator it works.&amp;nbsp; I've tried every trick I&amp;nbsp; can think of to get it accepted but no luck. Any idea?&lt;/P&gt;&lt;P&gt;The error from ArcGIS Pro is:&amp;nbsp; &lt;EM&gt;ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;From Python it is a little more explicit:&amp;nbsp;&lt;EM&gt;[[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near '2'.]&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It appears that the tool is stripping out the division symbol.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DonMorrison1_1-1636000576401.png" style="width: 685px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26765i18213BF5DD4C50EE/image-dimensions/685x129?v=v2" width="685" height="129" role="button" title="DonMorrison1_1-1636000576401.png" alt="DonMorrison1_1-1636000576401.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcGIS Pro 2.8.3&lt;/P&gt;&lt;P&gt;SQL Server DB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Nov 2021 04:36:56 GMT</pubDate>
    <dc:creator>DonMorrison1</dc:creator>
    <dc:date>2021-11-04T04:36:56Z</dc:date>
    <item>
      <title>Division symbol not working in CreateDatabaseView SQL</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/division-symbol-not-working-in-createdatabaseview/m-p/1113909#M47490</link>
      <description>&lt;P&gt;I'm trying to create a database view using the CreateDatabaseView tool. The SQL statement includes a forward slash as a division symbol and it appears to be causing an error. For simplicity let's say "&lt;STRONG&gt;SELECT 5/2 as x&lt;/STRONG&gt;". The SQL statement is valid and when I change from division to any other math operator it works.&amp;nbsp; I've tried every trick I&amp;nbsp; can think of to get it accepted but no luck. Any idea?&lt;/P&gt;&lt;P&gt;The error from ArcGIS Pro is:&amp;nbsp; &lt;EM&gt;ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;A href="http://esriurl.com/support" target="_blank"&gt;http://esriurl.com/support&lt;/A&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;From Python it is a little more explicit:&amp;nbsp;&lt;EM&gt;[[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near '2'.]&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It appears that the tool is stripping out the division symbol.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DonMorrison1_1-1636000576401.png" style="width: 685px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26765i18213BF5DD4C50EE/image-dimensions/685x129?v=v2" width="685" height="129" role="button" title="DonMorrison1_1-1636000576401.png" alt="DonMorrison1_1-1636000576401.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcGIS Pro 2.8.3&lt;/P&gt;&lt;P&gt;SQL Server DB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 04:36:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/division-symbol-not-working-in-createdatabaseview/m-p/1113909#M47490</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2021-11-04T04:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Division symbol not working in CreateDatabaseView SQL</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/division-symbol-not-working-in-createdatabaseview/m-p/1113972#M47499</link>
      <description>&lt;P&gt;from the answer here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/loss-of-division-when-creating-a-database-view-in/td-p/1106057" target="_blank"&gt;Solved: Loss of division when creating a database view in ... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the link&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-database-view.htm" target="_blank"&gt;Create Database View (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 09:02:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/division-symbol-not-working-in-createdatabaseview/m-p/1113972#M47499</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-11-04T09:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Division symbol not working in CreateDatabaseView SQL</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/division-symbol-not-working-in-createdatabaseview/m-p/1114006#M47502</link>
      <description>&lt;P&gt;Thanks Dan - indeed there it is right in front of my eyes the whole time.&amp;nbsp; It's tough to understand the reason for this limitation.&amp;nbsp; It sure messes up my automation.&amp;nbsp; I wrote a SQL Server scalar user defined function (eg sde.dons_div(dividend, divisor)) that my views can call when division is needed. That works OK but I've been reading that scalar UDFs can lead to very poor performance on queries of large tables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 12:25:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/division-symbol-not-working-in-createdatabaseview/m-p/1114006#M47502</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2021-11-04T12:25:01Z</dc:date>
    </item>
  </channel>
</rss>

