<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Need Example Of Database Usage</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Need Example Of Database Usage]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 01:45:42 +0000</pubDate>
  <lastBuildDate>Sat, 31 May 2008 15:02:48 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=10243</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Need Example Of Database Usage :   Aaron wrote:Hi,   I did test...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=36070&amp;title=need-example-of-database-usage#36070</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10243<br /><strong>Posted:</strong> 31 May 2008 at 3:02pm<br /><br /><FONT size=2><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br />Hi, </FONT><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>I did test the 2 options and the option Baldur gave us was faster, good job <img src="https://forum.codejock.com/smileys/smiley32.gif" border="0"><img src="https://forum.codejock.com/smileys/smiley32.gif" border="0"><img src="https://forum.codejock.com/smileys/smiley32.gif" border="0"></FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>I did ten runs for each option (slow machine 800Mhz and about 40000 items) but you can see the difference. I think Nick will have to change the sample again <img src="https://forum.codejock.com/smileys/smiley17.gif" border="0"></FONT></DIV><DIV><FONT size=2></td></tr></table> </FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>Hi,</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>The test I did was with the sample <strong>@nvierros</strong> provided. Someone else asked a sample for the same thing and I made one with two possible options (DAO and ADODB) and it seems that DAO is faster.</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>Loading about 200.000 records:</FONT></DIV><OL><LI><FONT size=2>ADODB - 22,04 sec.&nbsp;</FONT><LI><FONT size=2>DAO&nbsp;- 15,75 sec.</FONT></LI></OL><DIV><FONT size=2>For anyone who is still interested see post: </FONT></DIV><DIV><a href="http://forum.codejock.com/forum_posts.asp?TID=10814" target="_blank"><FONT size=2>http://forum.codejock.com/forum_posts.asp?TID=10814</FONT></A></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV>]]>
   </description>
   <pubDate>Sat, 31 May 2008 15:02:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=36070&amp;title=need-example-of-database-usage#36070</guid>
  </item> 
  <item>
   <title><![CDATA[Need Example Of Database Usage : Hi,  That is correct ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34208&amp;title=need-example-of-database-usage#34208</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10243<br /><strong>Posted:</strong> 24 April 2008 at 3:11pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>That is correct <img src="https://forum.codejock.com/smileys/smiley36.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Thu, 24 Apr 2008 15:11:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34208&amp;title=need-example-of-database-usage#34208</guid>
  </item> 
  <item>
   <title><![CDATA[Need Example Of Database Usage :   Aaron wrote:Hi,   With Xt...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34197&amp;title=need-example-of-database-usage#34197</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3987">braian87b</a><br /><strong>Subject:</strong> 10243<br /><strong>Posted:</strong> 24 April 2008 at 11:41am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br />Hi, <DIV>&nbsp;</DIV><DIV><FONT size=4><EM>With</EM> </FONT>XtremeRecord.AddItem(<strong>rs.Collect(Index)</strong>)<BR>&nbsp;&nbsp;&nbsp; If IsNull(.Value) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Value = Empty<BR>&nbsp;&nbsp;&nbsp;&nbsp;End If<BR><EM><FONT size=4>End With</FONT><BR></EM></DIV><DIV><EM>Collect is returning the value Field(index) in the recordset</EM></DIV><DIV><EM>&nbsp;</DIV></EM></td></tr></table> <DIV></DIV><DIV>&nbsp;</DIV><DIV>Yes, but i think that&nbsp; XtremeRecord.AddItem is who returning the Item object and the .Value Property corresponds to the Item, </DIV><DIV>&nbsp;</DIV><DIV>Is'n it? or Im Wrong?</DIV><DIV>&nbsp;</DIV><DIV>Because youre passing rs.Collect to the AddItem Method as an argument.</DIV><DIV>dont you?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 24 Apr 2008 11:41:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34197&amp;title=need-example-of-database-usage#34197</guid>
  </item> 
  <item>
   <title><![CDATA[Need Example Of Database Usage :     Aaron wrote:Hi,  With...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34178&amp;title=need-example-of-database-usage#34178</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 10243<br /><strong>Posted:</strong> 23 April 2008 at 1:49pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br />Hi,<div>&nbsp;</div><div><font size="4"><em>With</em> </font>XtremeRecord.AddItem(<strong>rs.Collect(Index)</strong>)<br>&nbsp;&nbsp;&nbsp; If IsNull(.Value) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Value = Empty<br>&nbsp;&nbsp;&nbsp;&nbsp;End If<br><em><font size="4">End With</font><br></em></div><div><em>Collect is returning the value Field(index) in the recordset</em></div><div><em>&nbsp;</em></div></td></tr></table><br><br>sorry my bad. i was blind at that moment.. i didnt see it.. hehehe&nbsp;<img src="http://forum.codejock.com/smileys/smiley36.gif" border="0" align="absmiddle">]]>
   </description>
   <pubDate>Wed, 23 Apr 2008 13:49:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34178&amp;title=need-example-of-database-usage#34178</guid>
  </item> 
  <item>
   <title><![CDATA[Need Example Of Database Usage : I have Version 12.2 and if an...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34177&amp;title=need-example-of-database-usage#34177</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2531">Baldur</a><br /><strong>Subject:</strong> 10243<br /><strong>Posted:</strong> 23 April 2008 at 1:41pm<br /><br />I have Version 12.2 and if an item contains NULL instead of Empty, the hole row will be ignored.<DIV>Thats, why i change it to empty.</DIV>]]>
   </description>
   <pubDate>Wed, 23 Apr 2008 13:41:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34177&amp;title=need-example-of-database-usage#34177</guid>
  </item> 
  <item>
   <title><![CDATA[Need Example Of Database Usage :   Lodep59 wrote:Dear Aaron,   I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34159&amp;title=need-example-of-database-usage#34159</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10243<br /><strong>Posted:</strong> 23 April 2008 at 7:33am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Lodep59" alt="Originally posted by Lodep59" style="vertical-align: text-bottom;" /> <strong>Lodep59 wrote:</strong><br /><br />Dear Aaron, <DIV>&nbsp;</DIV><DIV>I was talking about the use of adocommand not rs.collect.</DIV><DIV>You're right, the collect method is faster because it doesn't need a reference to the field object. Why this method is hidden is an other subject...</DIV><DIV>&nbsp;</DIV><DIV>Sorry to have disturbed you.</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>You can always disturb me <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0">&nbsp;</DIV><DIV>But you were right&nbsp;about that.&nbsp;Keep the code as simple as can be. Keep "bugging" me and the other members <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Wed, 23 Apr 2008 07:33:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34159&amp;title=need-example-of-database-usage#34159</guid>
  </item> 
  <item>
   <title><![CDATA[Need Example Of Database Usage : Hi,  With XtremeRecord.AddItem(rs.Collect(Index))...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34157&amp;title=need-example-of-database-usage#34157</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10243<br /><strong>Posted:</strong> 23 April 2008 at 7:08am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV><FONT size=4><EM>With</EM> </FONT>XtremeRecord.AddItem(<strong>rs.Collect(Index)</strong>)<BR>&nbsp;&nbsp;&nbsp; If IsNull(.Value) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Value = Empty<BR>&nbsp;&nbsp;&nbsp;&nbsp;End If<BR><EM><FONT size=4>End With</FONT><BR></EM></DIV><DIV><EM>Collect is returning the value Field(index) in the recordset</EM></DIV><DIV><EM>&nbsp;</DIV></EM>]]>
   </description>
   <pubDate>Wed, 23 Apr 2008 07:08:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34157&amp;title=need-example-of-database-usage#34157</guid>
  </item> 
  <item>
   <title><![CDATA[Need Example Of Database Usage :    Aaron wrote: Baldur solution:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34151&amp;title=need-example-of-database-usage#34151</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 10243<br /><strong>Posted:</strong> 23 April 2008 at 6:10am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Aaron" alt="Originally posted by Aaron" style="vertical-align: text-bottom;" /> <strong>Aaron wrote:</strong><br /><br /><div>&nbsp;</div><div><em><u>Baldur solution:</u></em> (seems about 2 seconds faster, look my post above)</div><div><em><u></u></em>&nbsp;</div><div>For Index = 0 To rs.Fields.Count - 1<br>&nbsp;&nbsp;&nbsp; With XtremeRecord.AddItem(<strong>rs.Collect(Index)</strong>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If IsNull(.Value) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Value = Empty<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br>&nbsp;&nbsp;&nbsp;&nbsp;End With<br>Next</div></td></tr></table><br><br>hi aaron,<br><br>what object is being referenced in the <b>".value"</b>?<br>i didnt see any <b>WITH&nbsp;</b> statement.<br><br>thanks<br>]]>
   </description>
   <pubDate>Wed, 23 Apr 2008 06:10:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34151&amp;title=need-example-of-database-usage#34151</guid>
  </item> 
  <item>
   <title><![CDATA[Need Example Of Database Usage : Dear Aaron,  I was talking about...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34146&amp;title=need-example-of-database-usage#34146</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 10243<br /><strong>Posted:</strong> 23 April 2008 at 5:10am<br /><br />Dear Aaron,<DIV>&nbsp;</DIV><DIV>I was talking about the use of adocommand not rs.collect.</DIV><DIV>You're right, the collect method is faster because it doesn't need a reference to the field object. Why this method is hidden is an other subject...</DIV><DIV>&nbsp;</DIV><DIV>Sorry to have disturbed you.</DIV>]]>
   </description>
   <pubDate>Wed, 23 Apr 2008 05:10:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34146&amp;title=need-example-of-database-usage#34146</guid>
  </item> 
  <item>
   <title><![CDATA[Need Example Of Database Usage : Dear @Lodep59   The how is possible...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34095&amp;title=need-example-of-database-usage#34095</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10243<br /><strong>Posted:</strong> 22 April 2008 at 12:47pm<br /><br />Dear @Lodep59 <DIV>&nbsp;</DIV><DIV>The how is possible in 1000 ways, we know that <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0">. The speed with loading is what counts. Do the test with:</DIV><DIV>&nbsp;</DIV><DIV><EM><U>Your solution (and myself included):</U></EM></DIV><DIV><EM><U></U></EM>&nbsp;</DIV><DIV>For Index = 0 To colCount - 1<BR>&nbsp;&nbsp;&nbsp; XtremeRecord.AddItem <strong>rs.Fields(Index).Value</strong><BR>Next<BR></DIV><DIV>&nbsp;</DIV><DIV>and with:</DIV><DIV>&nbsp;</DIV><DIV><EM><U>Baldur solution:</U></EM> (seems about 2 seconds faster, look my post above)</DIV><DIV><EM><U></U></EM>&nbsp;</DIV><DIV>For Index = 0 To rs.Fields.Count - 1<BR>&nbsp;&nbsp;&nbsp; With XtremeRecord.AddItem(<strong>rs.Collect(Index)</strong>)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If IsNull(.Value) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Value = Empty<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;End With<BR>Next</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 22 Apr 2008 12:47:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10243&amp;PID=34095&amp;title=need-example-of-database-usage#34095</guid>
  </item> 
 </channel>
</rss>