Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. showing progress of a running Query

showing progress of a running Query

Scheduled Pinned Locked Moved C#
databaseasp-nethelptutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rocky
    wrote on last edited by
    #1

    Hi every buddy, Well I was thinking abt building some kind of a mechanism that gives progress in a progressBar while we access some information from the Database. So the core issue is, how to get the progress information from a query while it is running on a database. Lets say you’re making a long calculation from a ledger Table Cust_Ledger(ID, , account_ID ,CustID, Debit, credit, t_date) And u execute the query using the SqlDataAdapter or TableAdapter or whatever the case maybe, then how can u show the progress… Thanks in advance, Rocky

    C O 2 Replies Last reply
    0
    • R Rocky

      Hi every buddy, Well I was thinking abt building some kind of a mechanism that gives progress in a progressBar while we access some information from the Database. So the core issue is, how to get the progress information from a query while it is running on a database. Lets say you’re making a long calculation from a ledger Table Cust_Ledger(ID, , account_ID ,CustID, Debit, credit, t_date) And u execute the query using the SqlDataAdapter or TableAdapter or whatever the case maybe, then how can u show the progress… Thanks in advance, Rocky

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You can't.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      P 1 Reply Last reply
      0
      • R Rocky

        Hi every buddy, Well I was thinking abt building some kind of a mechanism that gives progress in a progressBar while we access some information from the Database. So the core issue is, how to get the progress information from a query while it is running on a database. Lets say you’re making a long calculation from a ledger Table Cust_Ledger(ID, , account_ID ,CustID, Debit, credit, t_date) And u execute the query using the SqlDataAdapter or TableAdapter or whatever the case maybe, then how can u show the progress… Thanks in advance, Rocky

        O Offline
        O Offline
        overfreeze
        wrote on last edited by
        #3

        Instead of a progress bar try another progress indicator, if your idea is showing activity to the user. Otherwise, I dont know any way of doing what you're asking.

        1 Reply Last reply
        0
        • C Christian Graus

          You can't.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          Only thing I can think of would be to break the query down and loop through the broken down bits, but it would probably have a fair performance hit, though...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups