OleDbCommand TimeOut Not Working

Discussion in 'ASP .Net' started by =?Utf-8?B?Q2hyaXMgRmluaw==?=, Aug 31, 2005.

  1. 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?Q2hyaXMgRmluaw==?=, Aug 31, 2005
    #1
    1. Advertising

  2. 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();
    =?Utf-8?B?Q3VydF9DIFtNVlBd?=, Aug 31, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. darrel

    OleDbDataAdapter vs OleDbCommand

    darrel, Nov 23, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    6,908
    Scott M.
    Nov 25, 2005
  2. Tom Wild
    Replies:
    0
    Views:
    379
    Tom Wild
    Aug 21, 2003
  3. Simon Harris
    Replies:
    1
    Views:
    333
    DalePres
    Jan 31, 2005
  4. =?Utf-8?B?SmFzb24gU3RlZXZlcw==?=

    OleDbCommand Selecting Variable Data

    =?Utf-8?B?SmFzb24gU3RlZXZlcw==?=, Jun 27, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    479
    =?Utf-8?B?SmFzb24gU3RlZXZlcw==?=
    Jun 27, 2005
  5. Mark Sandfox

    Problem with OleDBCommand Update

    Mark Sandfox, Jul 29, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,995
    Balder78
    Aug 13, 2008
Loading...

Share This Page