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. Web Development
  3. ASP.NET
  4. show Progress for Long Running Query

show Progress for Long Running Query

Scheduled Pinned Locked Moved ASP.NET
databasequestioncsharpjavascriptasp-net
6 Posts 3 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.
  • A Offline
    A Offline
    Abdul Rahman Hamidy
    wrote on last edited by
    #1

    Dear All, I have a query in SQL 2005 which takes some time to complete during query executation I want to show the progress for the user in asp.net application. I can show Progress bar and I can run the progress of query in the background using thread but the problem exists how can i show the progress based on the query execuation? any ideas? "I think the better approach would be to show seperate dialogbox (Window) from javascript and show the progress at that window."

    Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

    M G 2 Replies Last reply
    0
    • A Abdul Rahman Hamidy

      Dear All, I have a query in SQL 2005 which takes some time to complete during query executation I want to show the progress for the user in asp.net application. I can show Progress bar and I can run the progress of query in the background using thread but the problem exists how can i show the progress based on the query execuation? any ideas? "I think the better approach would be to show seperate dialogbox (Window) from javascript and show the progress at that window."

      Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

      M Offline
      M Offline
      MyDevBank
      wrote on last edited by
      #2

      Hi Abdul how long is "takes some time" a sec, a 30 sec ? if its a 5 sec max ill go for an animated gif file [here](http://www.preloaders.net/ target=) if not i wont let the user to wait to much for a process do you have to wait for the query to execute ? MyDevBank.com

      A 1 Reply Last reply
      0
      • M MyDevBank

        Hi Abdul how long is "takes some time" a sec, a 30 sec ? if its a 5 sec max ill go for an animated gif file [here](http://www.preloaders.net/ target=) if not i wont let the user to wait to much for a process do you have to wait for the query to execute ? MyDevBank.com

        A Offline
        A Offline
        Abdul Rahman Hamidy
        wrote on last edited by
        #3

        Thanks for reply, well the progress is different its based on column selection, the much the colums the much time it takes.It takes less and more than 30 sec in some circumstances.

        Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

        1 Reply Last reply
        0
        • A Abdul Rahman Hamidy

          Dear All, I have a query in SQL 2005 which takes some time to complete during query executation I want to show the progress for the user in asp.net application. I can show Progress bar and I can run the progress of query in the background using thread but the problem exists how can i show the progress based on the query execuation? any ideas? "I think the better approach would be to show seperate dialogbox (Window) from javascript and show the progress at that window."

          Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

          G Offline
          G Offline
          Gary Stafford
          wrote on last edited by
          #4

          The challenge of a progress bar as you noted, server-or client-side, is difficulty of what to base the increment on during the query. Building on the suggestion of the first reply, how an animated gif image that symbolizes the query is running, combined with a counter that increments in seconds as the process running. Also, a message that warns searches could take from X - Y seconds, just so they don't think it's locked up. Those three elements might make the wait more bearable for the user.

          Regards, Gary

          A 1 Reply Last reply
          0
          • G Gary Stafford

            The challenge of a progress bar as you noted, server-or client-side, is difficulty of what to base the increment on during the query. Building on the suggestion of the first reply, how an animated gif image that symbolizes the query is running, combined with a counter that increments in seconds as the process running. Also, a message that warns searches could take from X - Y seconds, just so they don't think it's locked up. Those three elements might make the wait more bearable for the user.

            Regards, Gary

            A Offline
            A Offline
            Abdul Rahman Hamidy
            wrote on last edited by
            #5

            Thanks for the reply, but at least there should be something which i should show for the user, maybe i should an animated GIF till recieving the result from backend server. any ideas for animated GIF?

            Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

            G 1 Reply Last reply
            0
            • A Abdul Rahman Hamidy

              Thanks for the reply, but at least there should be something which i should show for the user, maybe i should an animated GIF till recieving the result from backend server. any ideas for animated GIF?

              Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

              G Offline
              G Offline
              Gary Stafford
              wrote on last edited by
              #6

              I've used images form these sites: http://www.ajaxload.info/[^] http://www.preloaders.net/[^]

              Regards, Gary

              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