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:54 PM.

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