<?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>Question Re: Not enough values for host variables: ERROR Message in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/not-enough-values-for-host-variables-error-message/qaa-p/13844028#M4874871</link>
    <description>&lt;P&gt;I found the problem.&lt;BR /&gt;
Since my Dynamic Query has Quoted Identifiers,  I have to use "Execute Immediate With Quotes On".&lt;BR /&gt;
Still odd, that it somehow works in dbisql !  &lt;/P&gt;
&lt;P&gt;greg&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2017 07:06:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-11-10T07:06:53Z</dc:date>
    <item>
      <title>Not enough values for host variables: ERROR Message</title>
      <link>https://community.sap.com/t5/technology-q-a/not-enough-values-for-host-variables-error-message/qaq-p/13844027</link>
      <description>&lt;P&gt;This problem has been posted before:&lt;BR /&gt;
When calling a stored procedure from an application, the error message "Not enough values for host variables is displayed".  The stored procedure works fine within dbisql &lt;/P&gt;
&lt;P&gt;The problem variable is:
Declare MyVar numeric(18,9) Array(56);&lt;/P&gt;
&lt;P&gt;I set the variable ( 1 to 55 ) using a Dynamic Query in a Loop,  and Execute Immediate. &lt;BR /&gt;
It works when called in dbisql,  but not when called thru a JDBC Connection.&lt;BR /&gt;
The Application does appear to work, if I hard code the Array Values ( and not use Execute Immediate ).&lt;BR /&gt;
Using SQL Anywhere 16.0.0.2043.  &lt;/P&gt;
&lt;P&gt;greg&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 01:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/not-enough-values-for-host-variables-error-message/qaq-p/13844027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-10T01:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Not enough values for host variables: ERROR Message</title>
      <link>https://community.sap.com/t5/technology-q-a/not-enough-values-for-host-variables-error-message/qaa-p/13844028#M4874871</link>
      <description>&lt;P&gt;I found the problem.&lt;BR /&gt;
Since my Dynamic Query has Quoted Identifiers,  I have to use "Execute Immediate With Quotes On".&lt;BR /&gt;
Still odd, that it somehow works in dbisql !  &lt;/P&gt;
&lt;P&gt;greg&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 07:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/not-enough-values-for-host-variables-error-message/qaa-p/13844028#M4874871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-10T07:06:53Z</dc:date>
    </item>
  </channel>
</rss>

