<?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[SQL und ADOQuery ????? Wichtig]]></title><description><![CDATA[<p>hi zusammen,<br />
ich brauche einen SQL Befehl um einen Datensatz aus einer Datenbank zu löschen.</p>
<p>es muss mit der KOmponente ADOQuery verwirklicht werden<br />
mein Ansatz :</p>
<p>ADOQuery1-&gt;Active = false;<br />
ADOQuery1-&gt;SQL-&gt;Clear();<br />
ADOQuery1-&gt;SQL-&gt;Add(&quot;DELETE * FROM Vertreter WHERE Nachname ='&quot; + Name + &quot;'&quot;);<br />
ADOQuery1-&gt;Open();<br />
ADOQuery1-&gt;Active = true;</p>
<p>Das funktioniert nicht !!!!<br />
könnt ihr mir den Befehl bitte aufschreiben.<br />
1000000 Dank im vorraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/92209/sql-und-adoquery-wichtig</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Jul 2026 03:36:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/92209.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Nov 2004 11:36:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SQL und ADOQuery ????? Wichtig on Tue, 16 Nov 2004 11:36:34 GMT]]></title><description><![CDATA[<p>hi zusammen,<br />
ich brauche einen SQL Befehl um einen Datensatz aus einer Datenbank zu löschen.</p>
<p>es muss mit der KOmponente ADOQuery verwirklicht werden<br />
mein Ansatz :</p>
<p>ADOQuery1-&gt;Active = false;<br />
ADOQuery1-&gt;SQL-&gt;Clear();<br />
ADOQuery1-&gt;SQL-&gt;Add(&quot;DELETE * FROM Vertreter WHERE Nachname ='&quot; + Name + &quot;'&quot;);<br />
ADOQuery1-&gt;Open();<br />
ADOQuery1-&gt;Active = true;</p>
<p>Das funktioniert nicht !!!!<br />
könnt ihr mir den Befehl bitte aufschreiben.<br />
1000000 Dank im vorraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/653059</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/653059</guid><dc:creator><![CDATA[Checkymator]]></dc:creator><pubDate>Tue, 16 Nov 2004 11:36:34 GMT</pubDate></item><item><title><![CDATA[Reply to SQL und ADOQuery ????? Wichtig on Tue, 16 Nov 2004 11:40:24 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=2" rel="nofollow">Borland C++ Builder (VCL/CLX)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/653060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/653060</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 16 Nov 2004 11:40:24 GMT</pubDate></item><item><title><![CDATA[Reply to SQL und ADOQuery ????? Wichtig on Tue, 16 Nov 2004 11:58:06 GMT]]></title><description><![CDATA[<p>Checkymator schrieb:</p>
<blockquote>
<p>Das funktioniert nicht !!!!</p>
</blockquote>
<p>Was genau funktioniert nicht?<br />
Welche Fehlermeldung bekommst du?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/653070</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/653070</guid><dc:creator><![CDATA[forumbot]]></dc:creator><pubDate>Tue, 16 Nov 2004 11:58:06 GMT</pubDate></item><item><title><![CDATA[Reply to SQL und ADOQuery ????? Wichtig on Tue, 16 Nov 2004 11:59:46 GMT]]></title><description><![CDATA[<p>Auch wenn natürlich</p>
<p>Checkymator schrieb:</p>
<blockquote>
<p>Das funktioniert nicht !!!!</p>
</blockquote>
<p>keine ausreichende Fehlerbeschreibung ist, versuche ich trotzdem mal<br />
den eigentlichen Fehler zu erraten.<br />
Du hast ein DELETE-Statement, das keinen Datensatz zurückliefert (im Gegensatz zu SELECT). Da solltest Du anstatt der Open()-Methode die<br />
ExecSQL()-Methode verwenden.<br />
Also:</p>
<pre><code class="language-cpp">ADOQuery1-&gt;Active = false;
ADOQuery1-&gt;SQL-&gt;Clear();
ADOQuery1-&gt;SQL-&gt;Add(&quot;DELETE * FROM Vertreter WHERE Nachname ='&quot; + Name +  &quot;'&quot;);
ADOQuery1-&gt;ExecSQL();
</code></pre>
<p>Du weißt aber auch, dass Dein Statement bei &quot;bösartigen&quot; Namen in die Hose gehen kann?</p>
<p>Gruß,</p>
<p>Alexander</p>
]]></description><link>https://www.c-plusplus.net/forum/post/653075</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/653075</guid><dc:creator><![CDATA[Alexander Kempf]]></dc:creator><pubDate>Tue, 16 Nov 2004 11:59:46 GMT</pubDate></item></channel></rss>