<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[TADOCommand CommandText? vlt. was nicht verstanden...]]></title><description><![CDATA[<p>Hallo, ich habe da vlt. was mit der CommandText Eigenschaft vom TADOCommand nicht verstanden. Bei folgendem Befehl:</p>
<pre><code class="language-cpp">ADOCommand1-&gt;CommandText=&quot;INSERT INTO tab_klasse (name,vorname,bild,klasse)&quot;;
  ADOCommand1-&gt;CommandText=&quot;VALUES (:name,:vorname,:bild,:klasse)&quot;;

  ADOCommand1-&gt;Parameters-&gt;ParamByName(&quot;name&quot;)-&gt;Value = as_name;
  ADOCommand1-&gt;Parameters-&gt;ParamByName(&quot;vorname&quot;)-&gt;Value = as_vorname;
  ADOCommand1-&gt;Parameters-&gt;ParamByName(&quot;bild&quot;)-&gt;Value = FileBytes;
  ADOCommand1-&gt;Parameters-&gt;ParamByName(&quot;klasse&quot;)-&gt;Value = as_klasse;

  ADOCommand1-&gt;Execute();
</code></pre>
<p>Bekomme ich folgende Fehlermeldung:<br />
'Unzulässige SQL-Anweisung; 'DELETE','INSERT','SELECT' oder 'UPDATE' erwartet'.</p>
<p>Aber das ist doch eine INSERT anweisung.</p>
<p>Weiß einfach mal wieder nicht weiter.</p>
<p>VIelen dank schon mal, gruß<br />
thorsten</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/124882/tadocommand-commandtext-vlt-was-nicht-verstanden</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Jul 2026 01:28:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/124882.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Nov 2005 12:06:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TADOCommand CommandText? vlt. was nicht verstanden... on Tue, 01 Nov 2005 12:06:22 GMT]]></title><description><![CDATA[<p>Hallo, ich habe da vlt. was mit der CommandText Eigenschaft vom TADOCommand nicht verstanden. Bei folgendem Befehl:</p>
<pre><code class="language-cpp">ADOCommand1-&gt;CommandText=&quot;INSERT INTO tab_klasse (name,vorname,bild,klasse)&quot;;
  ADOCommand1-&gt;CommandText=&quot;VALUES (:name,:vorname,:bild,:klasse)&quot;;

  ADOCommand1-&gt;Parameters-&gt;ParamByName(&quot;name&quot;)-&gt;Value = as_name;
  ADOCommand1-&gt;Parameters-&gt;ParamByName(&quot;vorname&quot;)-&gt;Value = as_vorname;
  ADOCommand1-&gt;Parameters-&gt;ParamByName(&quot;bild&quot;)-&gt;Value = FileBytes;
  ADOCommand1-&gt;Parameters-&gt;ParamByName(&quot;klasse&quot;)-&gt;Value = as_klasse;

  ADOCommand1-&gt;Execute();
</code></pre>
<p>Bekomme ich folgende Fehlermeldung:<br />
'Unzulässige SQL-Anweisung; 'DELETE','INSERT','SELECT' oder 'UPDATE' erwartet'.</p>
<p>Aber das ist doch eine INSERT anweisung.</p>
<p>Weiß einfach mal wieder nicht weiter.</p>
<p>VIelen dank schon mal, gruß<br />
thorsten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/905609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/905609</guid><dc:creator><![CDATA[ThorstenSteinberg]]></dc:creator><pubDate>Tue, 01 Nov 2005 12:06:22 GMT</pubDate></item><item><title><![CDATA[Reply to TADOCommand CommandText? vlt. was nicht verstanden... on Tue, 01 Nov 2005 12:13:08 GMT]]></title><description><![CDATA[<p>Vielleicht solltest du beide Zeilen zusammen dort eintragen (oder in der zweiten Zeile ein += verwenden). &quot;=&quot; löscht üblicherweise den bisherigen Inhalt einer Variablen, d.h. nach den beiden Zuweisungen steht nur &quot;VALUES (:name,:vorname,:bild,:klasse)&quot; in deinem Kommando und das ist kein gültiger SQL-Befehl.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/905613</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/905613</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 01 Nov 2005 12:13:08 GMT</pubDate></item><item><title><![CDATA[Reply to TADOCommand CommandText? vlt. was nicht verstanden... on Tue, 01 Nov 2005 12:18:23 GMT]]></title><description><![CDATA[<p>hmm logisch. da hätte ich natülich auch drauf kommen sollen.</p>
<p>nun findet der aber die parameter nicht lol. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/905619</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/905619</guid><dc:creator><![CDATA[ThorstenSteinberg]]></dc:creator><pubDate>Tue, 01 Nov 2005 12:18:23 GMT</pubDate></item><item><title><![CDATA[Reply to TADOCommand CommandText? vlt. was nicht verstanden... on Tue, 01 Nov 2005 12:23:12 GMT]]></title><description><![CDATA[<p>ok, habe den commandtext in eine reihe geschrieben, dann funtionierte es auch wieder mit den params... danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/905630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/905630</guid><dc:creator><![CDATA[ThorstenSteinberg]]></dc:creator><pubDate>Tue, 01 Nov 2005 12:23:12 GMT</pubDate></item></channel></rss>