<?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[Werte aus einem SQL Recordset auslesen]]></title><description><![CDATA[<p>Hallo,<br />
habe folgenden Code:</p>
<pre><code class="language-cpp">_bstr_t rsString = (&quot;select Datum,Identnummer,Etext from Protokoll where Identnummer = '14090984' order by Datum desc&quot;);

pRs-&gt;Open(rsString,vCon, adOpenForwardOnly, adLockReadOnly, adCmdUnknown);		
int rstFound = pRs-&gt;RecordCount;
if (rstFound &gt; 0)
 {
  //Was mache ich jetzt hier???
 }
</code></pre>
<p>wie speichere ich nun die erhaltenen Werte in Variablen, bzw lasse sie mir anzeigen?</p>
<p>mfg<br />
Marcus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/73652/werte-aus-einem-sql-recordset-auslesen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 20:47:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/73652.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 May 2004 13:21:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Werte aus einem SQL Recordset auslesen on Wed, 12 May 2004 13:21:20 GMT]]></title><description><![CDATA[<p>Hallo,<br />
habe folgenden Code:</p>
<pre><code class="language-cpp">_bstr_t rsString = (&quot;select Datum,Identnummer,Etext from Protokoll where Identnummer = '14090984' order by Datum desc&quot;);

pRs-&gt;Open(rsString,vCon, adOpenForwardOnly, adLockReadOnly, adCmdUnknown);		
int rstFound = pRs-&gt;RecordCount;
if (rstFound &gt; 0)
 {
  //Was mache ich jetzt hier???
 }
</code></pre>
<p>wie speichere ich nun die erhaltenen Werte in Variablen, bzw lasse sie mir anzeigen?</p>
<p>mfg<br />
Marcus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/518979</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/518979</guid><dc:creator><![CDATA[MarcusG]]></dc:creator><pubDate>Wed, 12 May 2004 13:21:20 GMT</pubDate></item><item><title><![CDATA[Reply to Werte aus einem SQL Recordset auslesen on Wed, 12 May 2004 13:48:40 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">CString strValue;
pRs-&gt;GetFieldValue(column, strValue);
</code></pre>
<p>column ist dann 0...x, deine Spalte halt.</p>
<p>mfg<br />
tobi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/518996</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/518996</guid><dc:creator><![CDATA[Tow-B.de]]></dc:creator><pubDate>Wed, 12 May 2004 13:48:40 GMT</pubDate></item><item><title><![CDATA[Reply to Werte aus einem SQL Recordset auslesen on Thu, 13 May 2004 09:08:10 GMT]]></title><description><![CDATA[<p>Hallo,<br />
da kommt beim Kompilieren GetFieldValue ist kein Element von _Recordset.<br />
??<br />
mfg<br />
Marcus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/519498</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/519498</guid><dc:creator><![CDATA[MarcusG]]></dc:creator><pubDate>Thu, 13 May 2004 09:08:10 GMT</pubDate></item><item><title><![CDATA[Reply to Werte aus einem SQL Recordset auslesen on Fri, 14 May 2004 09:17:41 GMT]]></title><description><![CDATA[<p>Der Fehler bei dir ist, dass die Spalten nicht bei 0 sondern bei 1 beginnen.<br />
Soweit ich mich erinnere. Schlagt mich, wenn ich mich da irre.</p>
<p>Ist dein Recordset ein CRecordset oder ein CDaoRecordSet? Wenn es das letztere<br />
ist wird das alles ein bißchen schwieriger. Sonst sollte es so gehen.</p>
<p>Gruß<br />
Mirko</p>
]]></description><link>https://www.c-plusplus.net/forum/post/520177</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/520177</guid><dc:creator><![CDATA[Superior]]></dc:creator><pubDate>Fri, 14 May 2004 09:17:41 GMT</pubDate></item></channel></rss>