Results 1 to 4 of 4

Thread: how do i stop a query that is taking a log time?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128

    how do i stop a query that is taking a log time?

    hello,

    how can i stop a query running,
    the button will be on a web application
    code is vb.net
    the query collects data from a inSQL database on the web server

    anybody got any ideas?

    Tom.

  2. #2
    Lively Member
    Join Date
    Sep 2002
    Posts
    103
    That's a really interesting question. I hope you get an answer. If it is possible, I suspect it would be by setting a time limit before you execute the query.

  3. #3
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    Well i should be change the timeout value. Not anywhere near VB .Net at the moment but I would guess it's a property of the connection that can be changed.

  4. #4
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651
    I'm not in front of a VS.NET machine but I guess the SQLCommand object should have a timeout property
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width