<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for Sameers (theAngrycodeR)</title><link>http://disqus.com/people/47c7293430edfa39226e652652b3de82/</link><description></description><language>en</language><lastBuildDate>Fri, 06 May 2005 06:13:14 -0000</lastBuildDate><item><title>Re: Ben.geek.nz &amp;raquo; ADO.NET SQLAdapter Timeout Error</title><link>http://ben.disqus.com/bengeeknz_raquo_adonet_sqladapter_timeout_error/#comment-1182323</link><description>Ok, I am also receiving this error. But I am not using Select like statement instead using Stored procedures to UPDATE database. Its a small routine which picks up data from one table (of one database) and insert that to second table (of second database).  Here is the little snippet of the code.&lt;br&gt;&lt;br&gt;Dim con2 As New SqlConnection(ConnectionStringHere)&lt;br&gt;con2.Open()&lt;br&gt;Dim cmd2 As New SqlCommand("StoredProcName, con2)&lt;br&gt;cmd2.Parameters.Add("@oneparam", paramvalue)&lt;br&gt;cmd2.CommandType = CommandType.StoredProcedure&lt;br&gt;cmd2.ExecuteNonQuery()&lt;br&gt;''' and BANG. &lt;br&gt;cmd2.dispose()&lt;br&gt;con2.close&lt;br&gt;&lt;br&gt;    &lt;br&gt;   The source table contains 40K+ records where I enumirate and for each record, after testing, I add that to second table using stored proc above.&lt;br&gt;&lt;br&gt;   Any idea?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sameers (theAngrycodeR)</dc:creator><pubDate>Thu, 05 May 2005 08:45:23 -0000</pubDate></item><item><title>Re: Ben.geek.nz &amp;raquo; ADO.NET SQLAdapter Timeout Error</title><link>http://ben.disqus.com/bengeeknz_raquo_adonet_sqladapter_timeout_error/#comment-1182324</link><description>Oooops, forgot to wrote that It do not stop at the very first record, works fine for sometime and then throws timeout error.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sameers (theAngrycodeR)</dc:creator><pubDate>Thu, 05 May 2005 08:47:07 -0000</pubDate></item><item><title>Re: Ben.geek.nz &amp;raquo; ADO.NET SQLAdapter Timeout Error</title><link>http://ben.disqus.com/bengeeknz_raquo_adonet_sqladapter_timeout_error/#comment-1182326</link><description>Well, I alrady have tried that but no Luck. BTW, the query (in stored procedure) is not that long enough. Just a simple update statement which update only one row in the database. Before this, I was using direct query to update that and at that moment I was also receiving this error. Thought update to stored procs to faster the work but error remained.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sameers (theAngrycodeR)</dc:creator><pubDate>Thu, 05 May 2005 15:23:05 -0000</pubDate></item><item><title>Re: Ben.geek.nz &amp;raquo; ADO.NET SQLAdapter Timeout Error</title><link>http://ben.disqus.com/bengeeknz_raquo_adonet_sqladapter_timeout_error/#comment-1182327</link><description>Well, I have this execution within a loop of recordset (datareader) fetched from another table.&lt;br&gt;&lt;br&gt;Dim mReader as SQLDataReader = mCmd.ExecuteReader ()   'This statement returns 28K+ records&lt;br&gt;&lt;br&gt;While mReader.Read&lt;br&gt;   'Some code to validate data&lt;br&gt;   'Then insertion to a new table using stored procedure.&lt;br&gt;   'Updating of a column in the current data row. The code I written above&lt;br&gt;End While&lt;br&gt;&lt;br&gt;   I just tested this again by fetching fewer data (only 50 rows instead of that 28K+) and it worked fine. So the problem was due to heavy datareader (am I correct)? &lt;br&gt;&lt;br&gt;   Now any suggestion how to avoid this error while having such heavy datareader?&lt;br&gt;&lt;br&gt;   Thanks,</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sameers (theAngrycodeR)</dc:creator><pubDate>Thu, 05 May 2005 15:32:10 -0000</pubDate></item><item><title>Re: Ben.geek.nz &amp;raquo; ADO.NET SQLAdapter Timeout Error</title><link>http://ben.disqus.com/bengeeknz_raquo_adonet_sqladapter_timeout_error/#comment-1182329</link><description>Well, the validation code is nothing more than validating the EMail address only. But I just got that working by changing SQLDataReader to DataTable. It worked fine but only one problem that it consumes 100% CPU + alot of memory. Which is bad for server.&lt;br&gt;&lt;br&gt;   I just remembered, that was not in my mind ago, that the SQLDataReader mentioned above belongs to the same table which is being updated by the stored procedure where I receive timeout error. Means, the datareader fetches rows from Promotions table and the stored procedure where timeout occrures also updates the same tabele. Actually I was fetching rows from Promotions table and then validation if that contains good email address then adds that to another table and mark that Promotion table's row to exported (column bExported=1).&lt;br&gt;&lt;br&gt;   IS that the real problem? Seems to be so, since when I changed to DataTable it worked fine even more than these rows (28K).&lt;br&gt;&lt;br&gt;   Thanks for your help,&lt;br&gt;   Sameers</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sameers (theAngrycodeR)</dc:creator><pubDate>Fri, 06 May 2005 06:13:14 -0000</pubDate></item></channel></rss>