Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   OleDbCommand TimeOut Not Working (http://www.velocityreviews.com/forums/t109035-oledbcommand-timeout-not-working.html)

=?Utf-8?B?Q2hyaXMgRmluaw==?= 08-31-2005 07:20 PM

OleDbCommand TimeOut Not Working
 
Why does this timeout after 10 secs, instead of the higher value expected?

OleDbConnection cn = new OleDbConnection(Session["DataSource"].ToString());
OleDbDataAdapter adapter = new OleDbDataAdapter();
OleDbCommand cmd = new OleDbCommand(query, cn);
cmd.CommandTimeout = 99999;
adapter.SelectCommand = cmd;
adapter.Fill(ds,"data");
cn.Close();
adapter.Dispose();

=?Utf-8?B?Q3VydF9DIFtNVlBd?= 08-31-2005 07:37 PM

RE: OleDbCommand TimeOut Not Working
 
Are you sure it is and not something else timing out (page, etc).?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com



"Chris Fink" wrote:

> Why does this timeout after 10 secs, instead of the higher value expected?
>
> OleDbConnection cn = new OleDbConnection(Session["DataSource"].ToString());
> OleDbDataAdapter adapter = new OleDbDataAdapter();
> OleDbCommand cmd = new OleDbCommand(query, cn);
> cmd.CommandTimeout = 99999;
> adapter.SelectCommand = cmd;
> adapter.Fill(ds,"data");
> cn.Close();
> adapter.Dispose();



All times are GMT. The time now is 12:32 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57